navigatesuccess-same-document.html (350B)
1 <!doctype html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <a id="a" href="#1"></a> 5 <script> 6 async_test(t => { 7 navigation.onnavigatesuccess = t.step_func_done(() => assert_equals(location.hash, "#1")); 8 a.click(); 9 }, "navigatesuccess fires for a same-document navigation"); 10 </script>