Bug 1368335 - Add test for idle dispatch after global window suspend. r=smaug
authorAndreas Farre <farre@mozilla.com>
Mon, 29 May 2017 14:16:18 +0200
changeset 409315 7cbe2db1830c37aaf82c6af533e53c36d0f11753
parent 409314 40669ce64bf7786d2a96598128db61152301a3db
child 409316 ad742747a8d096ec7dad94bafb81567f40c6e80d
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1368335
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1368335 - Add test for idle dispatch after global window suspend. r=smaug
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/webappapis/idle-callbacks/callback-xhr-sync.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -103904,16 +103904,22 @@
     ]
    ],
    "html/webappapis/idle-callbacks/callback-timeout.html": [
     [
      "/html/webappapis/idle-callbacks/callback-timeout.html",
      {}
     ]
    ],
+   "html/webappapis/idle-callbacks/callback-xhr-sync.html": [
+    [
+     "/html/webappapis/idle-callbacks/callback-xhr-sync.html",
+     {}
+    ]
+   ],
    "html/webappapis/idle-callbacks/cancel-invoked.html": [
     [
      "/html/webappapis/idle-callbacks/cancel-invoked.html",
      {}
     ]
    ],
    "html/webappapis/idle-callbacks/idlharness.html": [
     [
@@ -191747,16 +191753,20 @@
   "html/webappapis/idle-callbacks/callback-timeout-with-raf.html": [
    "febb81c38f530c81d9e9837df2c6d603225ecfd1",
    "testharness"
   ],
   "html/webappapis/idle-callbacks/callback-timeout.html": [
    "ba76964575cdf9b433f26c8a5d7a8183ab5c16e9",
    "testharness"
   ],
+  "html/webappapis/idle-callbacks/callback-xhr-sync.html": [
+   "79b4a278f0e35646cfdffeebf8f0523e2772bc9b",
+   "testharness"
+  ],
   "html/webappapis/idle-callbacks/cancel-invoked.html": [
    "30787d765fa435c1392bd852559042bf3c2e2553",
    "testharness"
   ],
   "html/webappapis/idle-callbacks/idlharness.html": [
    "520ee58982b43875f3caa08d7f46b9c6311be0b6",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/webappapis/idle-callbacks/callback-xhr-sync.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<meta charset=utf-8>
+<title></title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script>
+  async_test(function (t) {
+    requestIdleCallback(function() {
+      requestIdleCallback(t.step_func_done(function () {}))
+      var xhr = new XMLHttpRequest();
+      xhr.open("GET", "www.emample.com", false);
+      xhr.onload = t.step_func(function () {});
+      xhr.send(null);
+    });
+  }, "re-schedule idle callbacks after sync xhr");
+</script>