| Index: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/idle-callbacks/callback-exception.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/idle-callbacks/callback-exception.html b/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/idle-callbacks/callback-exception.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fecda221dec3b045d727aa5e9275ddb8f2526c18
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/idle-callbacks/callback-exception.html
|
| @@ -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>
|
|
|