diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/back-forward-multiple-frames.html b/testing/web-platform/tests/navigation-api/navigation-methods/back-forward-multiple-frames.html index 51767d13b7d6a..120247ad30720 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/back-forward-multiple-frames.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/back-forward-multiple-frames.html @@ -93,6 +93,26 @@ replace navigation . +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; await new Promise @@ -130,7 +150,7 @@ ) . length -1 +start_length " step 1 @@ -202,7 +222,9 @@ ) . length -2 +start_length ++ +1 " step 2 @@ -276,7 +298,9 @@ ) . length -2 +start_length ++ +1 " step 3 @@ -320,6 +344,8 @@ currentEntry . index +start_index ++ 1 " step @@ -431,6 +457,8 @@ currentEntry . index +start_index ++ 1 " after @@ -519,6 +547,8 @@ currentEntry . index +start_index ++ 1 " after @@ -609,7 +639,7 @@ currentEntry . index -0 +start_index " after outer @@ -721,6 +751,8 @@ currentEntry . index +start_index ++ 1 " after @@ -800,7 +832,7 @@ currentEntry . index -0 +start_index " after outer @@ -895,6 +927,8 @@ currentEntry . index +start_index ++ 1 " after diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-back.html b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-back.html index c889781e39fd7..531e1965315cf 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-back.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-back.html @@ -68,6 +68,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -118,7 +138,7 @@ ) . length -1 +start_length ) ; assert_equals @@ -156,7 +176,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -198,7 +220,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -224,6 +248,8 @@ currentEntry . index +start_index ++ 1 ) ; @@ -327,6 +353,8 @@ currentEntry . index +start_index ++ 1 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-forward.html b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-forward.html index 7be203d544b05..5bfad071665c1 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-forward.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-forward.html @@ -68,6 +68,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -118,7 +138,7 @@ ) . length -1 +start_length ) ; assert_equals @@ -156,7 +176,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -198,7 +220,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -224,6 +248,8 @@ currentEntry . index +start_index ++ 1 ) ; @@ -289,6 +315,8 @@ currentEntry . index +start_index ++ 1 ) ; @@ -332,7 +360,7 @@ currentEntry . index -0 +start_index ) ; assert_equals @@ -411,6 +439,8 @@ currentEntry . index +start_index ++ 1 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-back-multiple.html b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-back-multiple.html index 26ab3b6a30ca2..84ed5fa4b1769 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-back-multiple.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-back-multiple.html @@ -68,6 +68,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -118,7 +138,7 @@ ) . length -1 +start_length ) ; assert_equals @@ -156,7 +176,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -225,7 +247,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -251,6 +275,8 @@ currentEntry . index +start_index ++ 1 ) ; @@ -355,6 +381,8 @@ currentEntry . index +start_index ++ 1 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-forward-multiple.html b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-forward-multiple.html index 65bd95c03bb7d..540f5a578730a 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-forward-multiple.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/disambigaute-traverseTo-forward-multiple.html @@ -69,6 +69,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -126,7 +146,7 @@ ) . length -1 +start_length ) ; assert_equals @@ -189,7 +209,9 @@ ) . length -3 +start_length ++ +2 ) ; assert_equals @@ -234,7 +256,9 @@ ) . length -3 +start_length ++ +2 ) ; assert_equals @@ -260,6 +284,8 @@ currentEntry . index +start_index ++ 2 ) ; @@ -324,6 +350,8 @@ currentEntry . index +start_index ++ 2 ) ; @@ -358,7 +386,7 @@ currentEntry . index -0 +start_index ) ; assert_equals @@ -428,6 +456,8 @@ currentEntry . index +start_index ++ 2 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/forward-to-pruned-entry.html b/testing/web-platform/tests/navigation-api/navigation-methods/forward-to-pruned-entry.html index c1cfcbe9edf3e..cd82a70c12780 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/forward-to-pruned-entry.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/forward-to-pruned-entry.html @@ -47,6 +47,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -117,7 +137,9 @@ ) . length -2 +start_length ++ +1 ) ; await @@ -136,7 +158,7 @@ currentEntry . index -0 +start_index ) ; / @@ -255,6 +277,8 @@ currentEntry . index +start_index ++ 1 ) ; @@ -321,7 +345,7 @@ currentEntry . index -0 +start_index ) ; await @@ -340,6 +364,8 @@ currentEntry . index +start_index ++ 1 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-not-loaded.html b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-not-loaded.html index 6bfb430211203..17563e357d846 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-not-loaded.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-not-loaded.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Purposefully @@ -83,18 +103,6 @@ . assert_equals ( -navigation -. -entries -( -) -. -length -1 -) -; -assert_equals -( document . readyState @@ -164,7 +172,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -174,6 +184,8 @@ currentEntry . index +start_index ++ 1 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-same-url.html b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-same-url.html index 2de5a99e83f4d..324946104dfda 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-same-url.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-history-push-same-url.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -126,7 +146,7 @@ ) . length -1 +start_length ) ; let @@ -206,7 +226,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -216,6 +238,8 @@ currentEntry . index +start_index ++ 1 ) ; diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-cross-document.html b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-cross-document.html index 1320a97eba7f6..0ee85481453bc 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-cross-document.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-cross-document.html @@ -120,6 +120,17 @@ > { let +start_length += +navigation +. +entries +( +) +. +length +; +let start_history_length = history @@ -210,7 +221,7 @@ ) . length -1 +start_length ) ; assert_equals diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-same-document.html b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-same-document.html index c50615cf42d73..42df8de187d66 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-same-document.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/navigate-replace-same-document.html @@ -93,6 +93,17 @@ > { let +start_length += +navigation +. +entries +( +) +. +length +; +let start_history_length = history @@ -180,7 +191,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-forward-out-of-bounds.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-forward-out-of-bounds.html index 9eea0947fe7d8..87c62d706440b 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-forward-out-of-bounds.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-forward-out-of-bounds.html @@ -54,6 +54,28 @@ script > < +iframe +id += +" +i +" +src += +" +/ +common +/ +blank +. +html +" +> +< +/ +iframe +> +< script > promise_test @@ -63,8 +85,26 @@ = > { +await +new +Promise +( +resolve += +> +window +. +onload += +resolve +) +; assert_equals ( +i +. +contentWindow +. navigation . entries @@ -77,6 +117,10 @@ ; assert_equals ( +i +. +contentWindow +. navigation . entries @@ -85,6 +129,10 @@ [ 0 ] +i +. +contentWindow +. navigation . currentEntry @@ -92,6 +140,10 @@ ; assert_false ( +i +. +contentWindow +. navigation . canGoBack @@ -99,6 +151,10 @@ ; assert_false ( +i +. +contentWindow +. navigation . canGoForward @@ -108,6 +164,10 @@ assertBothRejectDOM ( t +i +. +contentWindow +. navigation . back @@ -116,12 +176,19 @@ " InvalidStateError " +i +. +contentWindow ) ; await assertBothRejectDOM ( t +i +. +contentWindow +. navigation . forward @@ -130,6 +197,9 @@ " InvalidStateError " +i +. +contentWindow ) ; } diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept-rejected.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept-rejected.html index 28c1cf238b943..783b2a2b4408d 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept-rejected.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept-rejected.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -129,7 +149,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -143,6 +165,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept.html index 39833cf39bd12..d14146e3ba126 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back-intercept.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -129,7 +149,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -143,6 +165,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back.html index 9bfaf9245bbf2..66bfb1d4e6d2c 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/back.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -129,7 +149,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -143,6 +165,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept-rejected.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept-rejected.html index bd3ab45714b05..93a7cc4938b4d 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept-rejected.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept-rejected.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -138,7 +158,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -152,6 +174,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept.html index ba8caac21b35c..e376d390bc84e 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward-intercept.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -129,7 +149,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -143,6 +165,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward.html index 201081acfa795..42a363273cf3f 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/forward.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -138,7 +158,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -152,6 +174,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-intercept-interrupted.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-intercept-interrupted.html index 2c988b7e46bc9..e83c96f986953 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-intercept-interrupted.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-intercept-interrupted.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -163,7 +183,9 @@ ) . length -3 +start_length ++ +2 ) ; assert_array_equals @@ -174,6 +196,11 @@ ( ) . +slice +( +start_index +) +. map ( e @@ -216,6 +243,8 @@ ( ) [ +start_index ++ 1 ] " diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted-within-onnavigate.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted-within-onnavigate.html index f2df78a8c8e33..d56644c87ca60 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted-within-onnavigate.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted-within-onnavigate.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -191,7 +211,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_array_equals @@ -202,6 +224,11 @@ ( ) . +slice +( +start_index +) +. map ( e diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted.html index 8cb2939698ab4..ebb9bc274abd2 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-interrupted.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -146,7 +166,9 @@ ) . length -3 +start_length ++ +2 ) ; assert_array_equals @@ -157,6 +179,11 @@ ( ) . +slice +( +start_index +) +. map ( e @@ -199,6 +226,8 @@ ( ) [ +start_index ++ 1 ] " diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-current.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-current.html index 89ddfa8c11c12..3a8546edb72f6 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-current.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-current.html @@ -63,8 +63,9 @@ = > { -assert_equals -( +let +start_length += navigation . entries @@ -72,8 +73,6 @@ ) . length -1 -) ; const entry @@ -113,7 +112,7 @@ ) . length -1 +start_length ) ; assert_equals diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept-rejected.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept-rejected.html index 2e41ff592edeb..8ba0765fa3f1c 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept-rejected.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept-rejected.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -138,7 +158,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -152,6 +174,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept.html index 50bb647ae8361..eed86889248e0 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-intercept.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -138,7 +158,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -152,6 +174,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo.html index 43406607d73c9..2d2563567af43 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo.html @@ -63,6 +63,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -138,7 +158,9 @@ ) . length -2 +start_length ++ +1 ) ; const @@ -152,6 +174,11 @@ entries ( ) +. +slice +( +start_index +) ; assert_equals ( diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-after-adding-iframe.html b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-after-adding-iframe.html index 1155058a6d3d8..3e188a347a5f4 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-after-adding-iframe.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-after-adding-iframe.html @@ -52,7 +52,11 @@ let start_length = -history +navigation +. +entries +( +) . length ; @@ -116,7 +120,9 @@ ) . length -2 +start_length ++ +1 ) ; let diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-multiple-steps.html b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-multiple-steps.html index 5e4b62b4c7551..52d2820c840d0 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-multiple-steps.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-multiple-steps.html @@ -47,6 +47,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -104,7 +124,7 @@ ) . length -1 +start_length ) ; let @@ -160,7 +180,9 @@ ) . length -3 +start_length ++ +2 ) ; await @@ -182,7 +204,9 @@ ) . length -3 +start_length ++ +2 ) ; assert_equals @@ -196,7 +220,7 @@ ( ) [ -0 +start_index ] ) ; @@ -229,7 +253,9 @@ ) . length -3 +start_length ++ +2 ) ; assert_equals @@ -243,6 +269,8 @@ ( ) [ +start_index ++ 2 ] ) diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-navigates-multiple-iframes.html b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-navigates-multiple-iframes.html index df759bc7a7380..ac4ca821d6c58 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-navigates-multiple-iframes.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-navigates-multiple-iframes.html @@ -97,6 +97,17 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; / / Wait @@ -212,7 +223,7 @@ ) . length -1 +start_length ) ; assert_equals diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-same-document.html b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-same-document.html index 2f0162641fec7..a08244015e4cb 100644 --- a/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-same-document.html +++ b/testing/web-platform/tests/navigation-api/navigation-methods/traverseTo-same-document.html @@ -46,6 +46,26 @@ = > { +let +start_length += +navigation +. +entries +( +) +. +length +; +let +start_index += +navigation +. +currentEntry +. +index +; / / Wait @@ -96,7 +116,7 @@ ) . length -1 +start_length ) ; let @@ -156,7 +176,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -170,6 +192,8 @@ ( ) [ +start_index ++ 1 ] ) @@ -218,7 +242,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -232,7 +258,7 @@ ( ) [ -0 +start_index ] ) ; @@ -286,7 +312,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -300,6 +328,8 @@ ( ) [ +start_index ++ 1 ] ) @@ -344,7 +374,9 @@ ) . length -2 +start_length ++ +1 ) ; assert_equals @@ -358,7 +390,7 @@ ( ) [ -0 +start_index ] ) ;