OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- this tests the spec as it hopefully will be once bug https://www.w3.org/Bu
gs/Public/show_bug.cgi?id=17155 is fixed --> | 2 <!-- this tests the spec as it hopefully will be once bug https://www.w3.org/Bug
s/Public/show_bug.cgi?id=17155 is fixed --> |
3 <title>Fragment Navigation: hashchange event multiple changes old/newURL</title> | 3 <title>Fragment Navigation: hashchange event multiple changes old/newURL</title> |
4 <meta name=timeout content=long> | 4 <meta name=timeout content=long> |
5 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
6 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
7 <body> | 7 <body> |
8 <div id="log"></div> | 8 <div id="log"></div> |
9 <script> | 9 <script> |
10 var t = async_test(); | 10 var t = async_test(); |
11 t.step(function() { | 11 t.step(function() { |
12 var original_url = location.href; | 12 var original_url = location.href; |
(...skipping 15 matching lines...) Expand all Loading... |
28 for (var i=0; i<100; i++) { | 28 for (var i=0; i<100; i++) { |
29 expected.push("#test" + i); | 29 expected.push("#test" + i); |
30 } | 30 } |
31 assert_array_equals(hashes, expected); | 31 assert_array_equals(hashes, expected); |
32 location.hash = ""; | 32 location.hash = ""; |
33 t.done(); | 33 t.done(); |
34 } | 34 } |
35 }), true); | 35 }), true); |
36 }); | 36 }); |
37 </script> | 37 </script> |
OLD | NEW |