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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/007.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 importScripts('data:text/javascript,postMessage(1)');
3 postMessage(2);
4 /*
5 -->
6 <!doctype html>
7 <title>postMessage in importScripts</title>
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <div id="log"></div>
11 <script>
12 async_test(function() {
13 var worker = new Worker('#');
14 var i = 0;
15 worker.onmessage = this.step_func(function(e) {
16 i++;
17 assert_equals(e.data, i);
18 if (i == 2)
19 this.done();
20 });
21 });
22 </script>
23 <!--
24 */
25 //-->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698