Bug 1319306 - Change onreadystatechange assertion to a minimum of 2 rather than 10. r=annevk, a=test-only
authorShawn Huang <shuang@mozilla.com>
Wed, 22 Mar 2017 20:14:52 +0800
changeset 377004 acd954655ea8e5046e6c83e393540bedd4c2bfb8
parent 377003 28b201a6ba37d85f2e4e0af80d43b99ebce83235
child 377005 a9e49ecff8894d8705095c02ffe19e8a1da61905
push id7109
push userryanvm@gmail.com
push dateMon, 27 Mar 2017 21:04:21 +0000
treeherdermozilla-beta@07f281ba5954 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersannevk, test-only
bugs1319306
milestone53.0
Bug 1319306 - Change onreadystatechange assertion to a minimum of 2 rather than 10. r=annevk, a=test-only
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -133430,17 +133430,17 @@
    "ad6f024344d42e3d80abbb0bc7442fc996a452c3",
    "testharness"
   ],
   "XMLHttpRequest/event-readystate-sync-open.htm": [
    "4f8da3bd441743d0164094510fbbe1f891b8d3b0",
    "testharness"
   ],
   "XMLHttpRequest/event-readystatechange-loaded.htm": [
-   "42374b3f4f54c38866bd294c46e0ef8efde3baf1",
+   "a053761db197f204a08f200dad8efb9db9cbf642",
    "testharness"
   ],
   "XMLHttpRequest/event-timeout-order.htm": [
    "48415969d5bf6fe4b1d7ae2bba91bbee7840f0b0",
    "testharness"
   ],
   "XMLHttpRequest/event-timeout.htm": [
    "fed0881a6ba90760032c55495d28464c7c59de03",
--- a/testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm
+++ b/testing/web-platform/tests/XMLHttpRequest/event-readystatechange-loaded.htm
@@ -21,17 +21,17 @@ test.step(function() {
     var countedLoading = 0;
 
     client.onreadystatechange = test.step_func(function() {
         if (client.readyState === 3) {
             countedLoading += 1;
         }
 
         if (client.readyState === 4) {
-            assert_equals(countedLoading, 10, "LOADING state change may be emitted multiple times");
+            assert_greater_than(countedLoading, 1, "LOADING state change may be emitted multiple times");
 
             test.done();
         }
     });
 
     client.open("GET", "resources/trickle.py?count=10"); // default timeout in trickle.py is 1/2 sec, so this request will take 5 seconds to complete
     client.send(null);
 });