Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d

This commit is contained in:
Ms2ger 2016-11-14 11:07:09 +01:00
parent 65dd6d4340
commit ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions

View file

@ -0,0 +1,22 @@
<!doctype html>
<meta charset=utf-8>
<title>requestIdleCallback callback exception reported to error handler</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id="log"></div>
<script>
var custom_exception = 'requestIdleCallbackException';
setup({allow_uncaught_exception : true});
async_test(function (t) {
assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
addEventListener("error",function(e) {
t.step(function() {
assert_equals(e.error.message, custom_exception);
t.done();
})
});
window.requestIdleCallback(function () {
throw new Error(custom_exception);
});
}, "requestIdleCallback callback exceptions are reported to error handler");
</script>