Skip to content

Commit 0e1edfb

Browse files
farrejgraham
authored andcommitted
Add test for idle dispatch after global window suspend.
Upstreamed from https://bugzilla.mozilla.org/show_bug.cgi?id=1368335 [ci skip]
1 parent ba2820a commit 0e1edfb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<meta charset=utf-8>
3+
<title></title>
4+
<script src=/resources/testharness.js></script>
5+
<script src=/resources/testharnessreport.js></script>
6+
<script>
7+
async_test(function (t) {
8+
requestIdleCallback(function() {
9+
requestIdleCallback(t.step_func_done(function () {}))
10+
var xhr = new XMLHttpRequest();
11+
xhr.open("GET", "www.emample.com", false);
12+
xhr.onload = t.step_func(function () {});
13+
xhr.send(null);
14+
});
15+
}, "re-schedule idle callbacks after sync xhr");
16+
</script>

0 commit comments

Comments
 (0)