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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerGlobalScope/location/worker-separate-file.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 /*
3 -->
4 <!doctype html>
5 <title>location with a worker in separate file</title>
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <script>
10 async_test(function() {
11 var worker = new Worker('post-location-members.js?a#b?c');
12 worker.onmessage = this.step_func(function(e) {
13 assert_equals(e.data[0], location.href.replace(/\/[^\/]+$/, '/post-location- members.js?a#b?c'));
14 assert_equals(e.data[1], location.protocol);
15 assert_equals(e.data[2], location.host);
16 assert_equals(e.data[3], location.hostname);
17 assert_equals(e.data[4], location.port);
18 assert_equals(e.data[5], location.pathname.replace(/\/[^\/]+$/, '/post-locat ion-members.js'));
19 assert_equals(e.data[6], '?a');
20 assert_equals(e.data[7], '#b?c');
21 this.done();
22 });
23 });
24 </script>
25 <!--
26 */
27 //-->
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698