OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <div id="description"></div> | 5 <div id="description"></div> |
6 <pre id="console"></pre> | 6 <pre id="console"></pre> |
7 <script> | 7 <script> |
8 description('Tests that hashchange events have the expected newURL and oldURL pr
operties.'); | 8 description('Tests that hashchange events have the expected newURL and oldURL pr
operties.'); |
9 | 9 |
10 function hashOf(url) | 10 function hashOf(url) |
11 { | 11 { |
12 var hashIndex = url.lastIndexOf('#'); | 12 var hashIndex = url.lastIndexOf('#'); |
13 return hashIndex != -1 ? url.substring(hashIndex) : '[none]'; | 13 return hashIndex != -1 ? url.substring(hashIndex) : '[none]'; |
14 } | 14 } |
(...skipping 25 matching lines...) Expand all Loading... |
40 } | 40 } |
41 break; | 41 break; |
42 case '[none]': | 42 case '[none]': |
43 finishJSTest(); | 43 finishJSTest(); |
44 break; | 44 break; |
45 } | 45 } |
46 }; | 46 }; |
47 var jsTestIsAsync = true; | 47 var jsTestIsAsync = true; |
48 </script> | 48 </script> |
49 </html> | 49 </html> |
OLD | NEW |