diff --git a/navigation-api/focus-reset/focus-reset-timing.html b/navigation-api/focus-reset/focus-reset-timing.html new file mode 100644 index 00000000000000..df9f03afe9f369 --- /dev/null +++ b/navigation-api/focus-reset/focus-reset-timing.html @@ -0,0 +1,61 @@ + + + +
+ + diff --git a/navigation-api/scroll-behavior/after-transition-explicit-scroll.html b/navigation-api/scroll-behavior/after-transition-explicit-scroll.html index 83d5cffd2d0968..4b7d0754747821 100644 --- a/navigation-api/scroll-behavior/after-transition-explicit-scroll.html +++ b/navigation-api/scroll-behavior/after-transition-explicit-scroll.html @@ -13,10 +13,14 @@ await navigation.navigate("#frag").finished; assert_not_equals(window.scrollY, 0); navigation.onnavigate = t.step_func(e => { - e.intercept({ scroll: "after-transition" }); - assert_not_equals(window.scrollY, 0); - e.scroll(); - assert_equals(window.scrollY, 0); + e.intercept({ + scroll: "after-transition", + handler: t.step_func(() => { + assert_not_equals(window.scrollY, 0); + e.scroll(); + assert_equals(window.scrollY, 0); + }) + }); }); await navigation.back().finished; assert_equals(window.scrollY, 0); diff --git a/navigation-api/scroll-behavior/manual-immediate-scroll.html b/navigation-api/scroll-behavior/manual-immediate-scroll.html index 112910d46f751d..bafcf6b25628cf 100644 --- a/navigation-api/scroll-behavior/manual-immediate-scroll.html +++ b/navigation-api/scroll-behavior/manual-immediate-scroll.html @@ -14,11 +14,11 @@ assert_not_equals(window.scrollY, 0); navigation.onnavigate = e => { e.intercept({ scroll: "manual" }); - e.scroll(); - assert_equals(window.scrollY, 0); + assert_throws_dom("InvalidStateError", () => e.scroll()); + assert_not_equals(window.scrollY, 0); } await navigation.back().finished; - assert_equals(window.scrollY, 0); -}, "scroll: scroll() should work inside a navigate event handler"); + assert_not_equals(window.scrollY, 0); +}, "scroll: scroll() should not work inside a navigate event handler"); + + + + + +