[Pkg-mozext-commits] [firebug] 13/68: FBTest fix for spy/2285 (since bug 843508)

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag fbtest-1.11.4
in repository firebug.

commit 2fbcccaed1b675f264c8f8f09049782a2e851f8b
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Thu Mar 7 18:24:06 2013 +0100

    FBTest fix for spy/2285 (since bug 843508)
---
 tests/content/console/spy/2285/issue2285.html | 13 ++++++-------
 tests/content/console/spy/2285/issue2285.php  | 23 ++++++++++-------------
 2 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/tests/content/console/spy/2285/issue2285.html b/tests/content/console/spy/2285/issue2285.html
index b08cc42..01c1af3 100644
--- a/tests/content/console/spy/2285/issue2285.html
+++ b/tests/content/console/spy/2285/issue2285.html
@@ -46,15 +46,14 @@ function onMultipart()
     request.open("POST", "issue2285.php", true);
     request.onreadystatechange = function()
     {
+        if (request.readyState == 3 && request.status == 200)
+            content.innerHTML = ++counter;
+
         if (request.readyState == 4 && request.status == 200)
         {
-            content.innerHTML = ++counter;
-            if (counter == 4)
-            {
-                var event = document.createEvent("Events");
-                event.initEvent("test-done", true, false);
-                document.dispatchEvent(event);
-            }
+            var event = document.createEvent("Events");
+            event.initEvent("test-done", true, false);
+            document.dispatchEvent(event);
         }
     }
 
diff --git a/tests/content/console/spy/2285/issue2285.php b/tests/content/console/spy/2285/issue2285.php
index c595085..8300084 100644
--- a/tests/content/console/spy/2285/issue2285.php
+++ b/tests/content/console/spy/2285/issue2285.php
@@ -1,14 +1,11 @@
-<?php
-set_time_limit(300);
-header('Content-type: multipart/x-mixed-replace;boundary=NEXTPART');  
-print "\n--NEXTPART\n";
-for ($i = 0; $i < 4; $i++) {
-  print "Content-type: text/plain\n\n";
-  print "Part$i+";
-  print "--NEXTPART\n";
-  ob_flush();
-  flush();
-    sleep(1);
-}
-
+<?php
+set_time_limit(300);
+header('Content-type: multipart/x-mixed-replace;boundary=NEXTPART');  
+for ($i = 0; $i < 4; $i++) {
+  print "Part$i+";
+  ob_flush();
+  flush();
+    sleep(1);
+}
+
 ?>
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list