session-history-pushstate.https.html (903B)
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 promise_test(async () => { 18 assert_equals( 19 await runTestInPrerender("testHistoryPushStateInPrerender", uid), 20 "Passed" 21 ); 22 }, "history.pushState navigates independently with replacement in a prerender"); 23 24 promise_test(async () => { 25 assert_equals( 26 await runTestInPrerender("testHistoryReplaceStateInPrerender", uid), 27 "Passed" 28 ); 29 }, "history.replaceState navigates independently in a prerender"); 30 </script>