session-history-navigation.https.html (834B)
1 <!DOCTYPE html> 2 <title>Test history.length</title> 3 <meta name="timeout" content="long"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/common/utils.js"></script> 7 <script src="../resources/utils.js"></script> 8 <script src="resources/utils.js"></script> 9 <script src="resources/session-history-test-util.js"></script> 10 11 <body> 12 <script> 13 setup(() => assertSpeculationRulesIsSupported()); 14 15 const uid = token(); 16 17 // We test only a fragment-navigation because other kinds of the main frame navigation 18 // in prerender cancels prerendering. 19 promise_test(async () => { 20 assert_equals( 21 await runTestInPrerender("testSyntheticAnchorClickInPrerender", uid), 22 "Passed" 23 ); 24 }, "Synthetic anchor click navigates independently with replacement in a prerender"); 25 </script>