OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 /* |
| 3 --> |
| 4 <!doctype html> |
| 5 <title>location with a worker in separate file that redirects</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('helper-redirect.py?fail'); |
| 12 worker.onmessage = this.step_func_done(function(e) { |
| 13 assert_equals(e.data[0], location.href.replace(/\/[^\/]+$/, '/post-location-
members.js?a')); |
| 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], ''); |
| 21 }); |
| 22 }); |
| 23 </script> |
| 24 <!-- |
| 25 */ |
| 26 //--> |
| 27 |
| 28 |
OLD | NEW |