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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/006.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 var x;
3 var y;
4 var z;
5 try {
6 importScripts('data:text/javascript,x=1',
7 'data:text/javascript,throw 2',
8 'data:text/javascript,z=3');
9 } catch(e) {
10 y = e;
11 }
12 postMessage([x, y, z]);
13 /*
14 -->
15 <!doctype html>
16 <title>importScripts uncaught exception</title>
17 <script src="/resources/testharness.js"></script>
18 <script src="/resources/testharnessreport.js"></script>
19 <div id="log"></div>
20 <script>
21 async_test(function() {
22 var worker = new Worker('#');
23 worker.onmessage = this.step_func(function(e) {
24 assert_equals(e.data[0], 1);
25 assert_equals(e.data[1], 2);
26 assert_equals(e.data[2], undefined);
27 this.done();
28 });
29 });
30 </script>
31 <!--
32 */
33 //-->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698