| Index: LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html
|
| diff --git a/LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html b/LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html
|
| index 3db338f7ca74140e3e322af9c91f3ad537f367cf..4505ac079bb71e906e62fd768c2d09728796f702 100644
|
| --- a/LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html
|
| +++ b/LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html
|
| @@ -58,8 +58,8 @@
|
| }
|
| console.log(`verifying ${key}`);
|
| assert_equals(history.state.key, key, `state should have key: ${key}`);
|
| - assert_equals(document.body.scrollLeft, entry.expectedScroll[0], `scrollLeft is correct for ${key}`);
|
| - assert_equals(document.body.scrollTop, entry.expectedScroll[1], `scrollTop is correct ${key}`);
|
| + assert_equals(document.scrollingElement.scrollLeft, entry.expectedScroll[0], `scrollLeft is correct for ${key}`);
|
| + assert_equals(document.scrollingElement.scrollTop, entry.expectedScroll[1], `scrollTop is correct ${key}`);
|
|
|
| window.history.back();
|
| }));
|
| @@ -72,4 +72,4 @@
|
| }, 0);
|
|
|
| }, 'history.{push,replace}State retain and respect history.scrollRestoration');
|
| -</script>
|
| +</script>
|
|
|