Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html

Issue 1288693003: Fix scroll-restoration-push-replace.html test to support scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698