X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt_test01.php;h=fbeecf6b9f2a052a77fe167e43d526ea6dfa47a3;hb=087d3262b6c01417dad7b9eb365374fe5a9f2ba1;hp=ac5c47f02231492ae83d3c9b9145014bf360d508;hpb=4a2bbbc1fee0ffb152eba1ef5587f07cee4250a1;p=brisk.git diff --git a/web/xynt_test01.php b/web/xynt_test01.php index ac5c47f..fbeecf6 100644 --- a/web/xynt_test01.php +++ b/web/xynt_test01.php @@ -1,5 +1,13 @@ chunk($i, sprintf("\$('container').innerHTML = '%d';", $i)); - print($chunk); - mop_flush(); - - // exit(123); - sleep(1); + switch ($f_test) { + case 1: + // from 1 to 9 into the innerHTML and than close + for ($i = 1 ; $i < 10 ; $i++) { + $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = 'xx%d';", $i)); + print($chunk); + mop_flush(); + sleep(1); + } + break; + case 2: + // from 1 to 9 with 60 secs after 8, the client js api must restart stream after 12 secs + for ($i = 1 ; $i < 10 ; $i++) { + $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = 'yy%d';", $i)); + print($chunk); + mop_flush(); + sleep(1); + if ($i == 8) + sleep(60); + } + break; } exit; } @@ -64,30 +90,37 @@ if ($isstream == "true") { - - + - +
+"); +for ($test = 1 ; $test <= 2 ; $test++) { + printf(""); + foreach ($transs as $trans) { + printf("Test %s %02d", $trans, $test, $trans, $test); + } + printf("\n"); +} +printf(""); +printf("
[%s]
Test: %d
", $f_trans, $f_test); +?> +
BEGIN