Truly independent web browser
Tests/LibWeb: Wait for each key's scrollend in the Home and End test
Aliaksandr Kalenik601f21b5ac0e
diff --git a/Tests/LibWeb/Text/input/css/scroll-state-scrolled-home-end-keys.html b/Tests/LibWeb/Text/input/css/scroll-state-scrolled-home-end-keys.htmlindex 81516173add..9cd4860cd64 100644--- a/Tests/LibWeb/Text/input/css/scroll-state-scrolled-home-end-keys.html+++ b/Tests/LibWeb/Text/input/css/scroll-state-scrolled-home-end-keys.html@@ -68,10 +68,9 @@// Home and End are absolute scrolls, so they keep the most recent relative scroll direction, even when they// scroll the other way.const step = async (label, target, scrollingBox, queryTarget, keys) => {- for (const key of keys) {- internals.sendKey(target, key);- await scrollOffsetStopsChanging(() => scrollingBox.scrollTop);- }+ const scrollendTarget = scrollingBox === document.documentElement ? document : scrollingBox;+ for (const key of keys)+ await scrollSettled(scrollendTarget, () => internals.sendKey(target, key));await frames();report(label, scrollingBox, queryTarget);};