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

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

Powered by Google App Engine
This is Rietveld 408576698