| OLD | NEW |
| (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 | |
| OLD | NEW |