Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/Worker_ErrorEvent_bubbles_cancelable.htm

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Web Workers: Worker ErrorEvent - bubbles, cancelable</title>
4 <link rel="author" title="Intel" href="http://www.intel.com">
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <div id="log"></div>
8 <script>
9 // The worker events races with the window's load event; if the worker events
10 // arrive first, the harness will detect the error event and fail the test.
11 setup({ allow_uncaught_exception: true });
12
13 async_test(function(t) {
14 var worker = new Worker('./support/ErrorEvent.js');
15 worker.onerror = t.step_func_done(function(e) {
16 assert_false(e.bubbles, "onerror on worker doesn't bubble");
17 assert_true(e.cancelable, "onerror on worker is cancelable");
18 });
19 worker.postMessage("Error Message");
20 }, "ErrorEvent on worker doesn't bubble and is cancelable");
21
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698