session-history-subframe-navigation.https.html (717B)
1 <!DOCTYPE html> 2 <title>Test history.length during a subframe navigation</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("testSubframeNavigationInPrerender", uid), 20 "Passed" 21 ); 22 }, "Subframe navigation in prerender replaces the session entry"); 23 </script>