From 6b3deca05aae68fbef085dd42861c19e546f8d25 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 5 Dec 2012 10:31:46 +0100 Subject: [PATCH] add pause test --- web/xynt_test01.php | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/web/xynt_test01.php b/web/xynt_test01.php index fbeecf6..78aeca0 100644 --- a/web/xynt_test01.php +++ b/web/xynt_test01.php @@ -61,7 +61,7 @@ if ($isstream == "true") { 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)); + $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = '%d';", $i)); print($chunk); mop_flush(); sleep(1); @@ -70,7 +70,7 @@ if ($isstream == "true") { 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)); + $chunk = $transp->chunk($i, sprintf("\$('container').innerHTML = '%d';", $i)); print($chunk); mop_flush(); sleep(1); @@ -78,6 +78,20 @@ if ($isstream == "true") { 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; } @@ -109,8 +123,13 @@ if ($isstream == "true") {
"); -for ($test = 1 ; $test <= 2 ; $test++) { +for ($test = 1 ; $test <= 3 ; $test++) { printf(""); foreach ($transs as $trans) { printf("Test %s %02d", $trans, $test, $trans, $test); @@ -121,8 +140,13 @@ printf(""); printf("
[%s]
Test: %d
", $f_trans, $f_test); ?>
-
+
+Descrizione: +
+
+Counter: BEGIN +
-- 2.17.1