callback-xhr-sync.html (552B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title></title> 4 <meta name="timeout" content="long"> 5 <script src=/resources/testharness.js></script> 6 <script src=/resources/testharnessreport.js></script> 7 <script> 8 async_test(function (t) { 9 requestIdleCallback(function() { 10 requestIdleCallback(t.step_func_done(function () {})) 11 var xhr = new XMLHttpRequest(); 12 xhr.open("GET", "www.emample.com", false); 13 xhr.onload = t.step_func(function () {}); 14 xhr.send(null); 15 }); 16 }, "re-schedule idle callbacks after sync xhr"); 17 </script>