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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerGlobalScope/onerror/handled.html

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 <!--
2 onerror = function(a, b, c, d) {
3 postMessage([a, b, c, d]);
4 return true; // the error is "handled"
5 }
6 function x() {
7 y();
8 }
9 x();
10 /*
11 -->
12 <!doctype html>
13 <title>onerror, "handled"</title>
14 <script src="/resources/testharness.js"></script>
15 <script src="/resources/testharnessreport.js"></script>
16 <div id="log"></div>
17 <script>
18 async_test(function() {
19 var worker = new Worker('#');
20 worker.onmessage = this.step_func(function(e) {
21 assert_equals(typeof e.data[0], 'string', 'first argument');
22 assert_equals(e.data[1], document.URL+'#', 'second argument');
23 assert_equals(typeof e.data[2], 'number', 'third argument');
24 assert_equals(typeof e.data[3], 'number', 'fourth argument');
25 setTimeout(this.step_func(function() {
26 this.done();
27 }), 100);
28 });
29 worker.onerror = this.step_func(function(e) {
30 assert_unreached();
31 });
32 });
33 </script>
34 <!--
35 */
36 //-->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698