https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 57efde67960dc7d060e017f27c1a780a6b591f4a authored by moz-wptsync-bot on 13 March 2018, 19:13:26 UTC
Don't use external server in CSS tables test,
Tip revision: 57efde6
callback-invoked.html
<!doctype html>
<meta charset=utf-8>
<title>requestIdleCallback callback must be called eventually</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id="log"></div>
<script>
  async_test(function (t) {
    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
    window.requestIdleCallback(t.step_func_done());
  }, "requestIdleCallback callback is invoked at least once before the timeout");
</script>
back to top