http/tests/xmlhttprequest/event-listener-gc.html is flaky
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Feb 2015 18:50:25 +0000 (18:50 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Feb 2015 18:50:25 +0000 (18:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=33342

Tweaked test output a little, hopefully this will shed some light on what happens in failure case.

* http/tests/xmlhttprequest/event-listener-gc-expected.txt:
* http/tests/xmlhttprequest/event-listener-gc.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179749 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/event-listener-gc-expected.txt
LayoutTests/http/tests/xmlhttprequest/event-listener-gc.html

index 11ad8af..3491c16 100644 (file)
@@ -1,5 +1,15 @@
 2015-02-06  Alexey Proskuryakov  <ap@apple.com>
 
+        http/tests/xmlhttprequest/event-listener-gc.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=33342
+
+        Tweaked test output a little, hopefully this will shed some light on what happens in failure case.
+
+        * http/tests/xmlhttprequest/event-listener-gc-expected.txt:
+        * http/tests/xmlhttprequest/event-listener-gc.html:
+
+2015-02-06  Alexey Proskuryakov  <ap@apple.com>
+
         http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout-abortedonmain.html is flaky
         https://bugs.webkit.org/show_bug.cgi?id=141325
 
index 7d22dea..89a50f0 100644 (file)
@@ -4,7 +4,8 @@ See https://bugs.webkit.org/show_bug.cgi?id=9113 REGRESSION (14581): XMLHttpRequ
 
 If the test passes, you'll see a series of 'PASS' messages below.
 
-PASS: event handler fired after garbage collection.
-PASS: event handler fired after garbage collection.
-PASS: event handler fired after garbage collection.
+PASS: event handler fired, readyState: 1.
+PASS: event handler fired after garbage collection, readyState: 2.
+PASS: event handler fired after garbage collection, readyState: 3.
+PASS: event handler fired after garbage collection, readyState: 4.
 
index 016632e..2d3b1dd 100644 (file)
@@ -16,8 +16,7 @@ function collect()
 
 function processStateChange(e)
 {
-    if (didCollect)
-        write("PASS: event handler fired after garbage collection.\n");
+    write("PASS: event handler fired" + (didCollect ? " after garbage collection" : "") + ", readyState: " + e.target.readyState + ".\n");
     if (e.target.readyState == 4) {
         if (window.testRunner)
             testRunner.notifyDone();