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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html

Issue 2420483004: Revert of Worker: Import "imported/wpt/workers" tests (Closed)
Patch Set: Fix merge error 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 function x() {
3 y();
4 }
5 x();
6 /*
7 -->
8 <!doctype html>
9 <title>onerror, "not handled" with only window.onerror defined</title>
10 <script src="/resources/testharness.js"></script>
11 <script src="/resources/testharnessreport.js"></script>
12 <div id="log"></div>
13 <script>
14 setup({
15 allow_uncaught_exception: true,
16 });
17 async_test(function() {
18 var worker = new Worker('#');
19 window.onerror = this.step_func(function(a, b, c, d) {
20 assert_equals(typeof a, 'string', 'first argument');
21 assert_equals(b, document.URL+'#', 'second argument');
22 assert_equals(typeof c, 'number', 'third argument');
23 assert_equals(typeof d, 'number', 'fourth argument');
24 this.done();
25 return true; // "handled"
26 });
27 });
28 </script>
29 <!--
30 */
31 //-->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698