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