X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt_test01.php;h=78aeca04077d5a440b1416a408222ceedb5caf6c;hb=6b3deca05aae68fbef085dd42861c19e546f8d25;hp=32b4cb961691e42772940791766796fa060b232c;hpb=500b601f26d3c352800f45136e2ff617c8f7627c;p=brisk.git diff --git a/web/xynt_test01.php b/web/xynt_test01.php index 32b4cb9..78aeca0 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 = '%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 = '%d';", $i)); + print($chunk); + mop_flush(); + sleep(1); + if ($i == 8) + sleep(60); + } + break; + case 3: + // from 1 to 9 into the innerHTML and than close + for ($i = 1 ; $i < 10 ; $i++) { + if ($i != 5) { + $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = '%d';", $i)); + } + else { + $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = '%d';|sleep(gst,3000);", $i)); + } + print($chunk); + mop_flush(); + sleep(1); + } + break; } exit; } @@ -65,32 +104,49 @@ if ($isstream == "true") { - - + - -
+
+"); +for ($test = 1 ; $test <= 3 ; $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); +?> +
+
+Descrizione: +
+
+Counter: BEGIN +