X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt_test01.php;h=01adb539114ed0db22e90e7c2ddd31bc7de3cabc;hb=7f9618888f9963c4a7daebeb9e3d14ef0a56b968;hp=c0aa0585cac4ed3bf0198de9b229f21038cd5656;hpb=ddd822f1dca51731cc9fc8199db3f1cc527fb01a;p=brisk.git diff --git a/web/xynt_test01.php b/web/xynt_test01.php index c0aa058..01adb53 100644 --- a/web/xynt_test01.php +++ b/web/xynt_test01.php @@ -5,7 +5,8 @@ $desc = array( "Semplice: da 1 a 9 ogni secondo, poi ricomincia (status sempre v "Restart: da 1 a 8 ogni secondo, pausa 16 secondi (status passa ad arancione e poi a rosso), poi ricomincia (e status torna a verde).", "Pausa: da 1 a 5 ogni secondo, pausa 3 secondi, e poi 8 e 9 ogni secondo, e poi ricomincia (status sempre verde).", "Keyword: da 1 a 5 ogni secondo, @BEGIN@, @END@, @BEGIN@ xxx yyy @END@, 9, (status sempre verde).", - "Reload limiter: da 1 a 8 ogni secondo e chiude, 9 setta e chiude subito,
il client aspetta 3 secondi, e poi da 10 a N ogni secondo, (status sempre verde)."); + "Reload limiter: da 1 a 8 ogni secondo e chiude, 9 setta e chiude subito,
il client aspetta 3 secondi, e poi da 10 a N ogni secondo, (status sempre verde).", + "Esegue un comando, manda loc_new a un valore irraggiungibile, stoppa il processore di comandi e poi dà un comando teoricamente irraggiungibile."); // trim(mb_convert_case($split[0], MB_CASE_TITLE, 'UTF-8')) @@ -68,6 +69,12 @@ if (!isset($f_trans)) if (!isset($f_test)) $f_test = 1; +if (!isset($f_port)) + $f_port = 80; + +if (!isset($f_fback)) + $f_fback = 0; + function mop_flush() { @@ -246,6 +253,17 @@ if (isset($isstream) && $isstream == "true") { sleep(1); } } + break; + case 7: + $chunk = $trobj->chunk(1, sprintf("gst.st++; \$('container').innerHTML = 'prima';")); + print($chunk); + + $chunk = $trobj->chunk(2, sprintf("gst.st++; gst.st_loc_new++; xstm.stop();")); + print($chunk); + + $chunk = $trobj->chunk(3, sprintf("gst.st++; \$('container').innerHTML = 'dopo';")); + print($chunk); + break; } @@ -272,7 +290,7 @@ if (isset($isstream) && $isstream == "true") { var gst = new globst(); window.onload = function() { - xstm = new xynt_streaming(window, "", 80, 0, null /* console */, gst, 'xynt_test01_php', 'sess', sess, null, 'xynt_test01.php?isstream=true&f_test=', function(com){eval(com);}); + xstm = new xynt_streaming(window, "", , , console, gst, 'xynt_test01_php', 'sess', sess, null, 'xynt_test01.php?isstream=true&f_test=', function(com){eval(com);}); xstm.hbit_set(heartbit); xstm.start(); } @@ -289,10 +307,11 @@ printf(""); for ($test = 1 ; $test <= count($desc) ; $test++) { printf(""); foreach ($transs as $trans) { - printf("", $trans, $test, $trans, $test); + printf("", $trans, $test, $f_port, $f_fback, $trans, $test, $f_port, $f_fback); } printf("\n"); } +printf("", count($transs)); printf("
Test %s %02dTest %s %02d (port %d (fb %d))
STOP
"); printf("
[%s]
Test: %d
", $f_trans, $f_test); ?>