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

Unified Diff: LayoutTests/fast/scroll-behavior/main-frame-scroll-in-quirks-mode-expected.txt

Issue 782793002: Update Element API for CSSOM smooth scrolling to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 6 years 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
Index: LayoutTests/fast/scroll-behavior/main-frame-scroll-in-quirks-mode-expected.txt
diff --git a/LayoutTests/fast/scroll-behavior/main-frame-scroll-in-quirks-mode-expected.txt b/LayoutTests/fast/scroll-behavior/main-frame-scroll-in-quirks-mode-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..94ebb00160239c86de0628ca2dc7affaac9f4199
--- /dev/null
+++ b/LayoutTests/fast/scroll-behavior/main-frame-scroll-in-quirks-mode-expected.txt
@@ -0,0 +1,44 @@
+Test that calling scroll methods on the body element scrolls the viewport in quirks mode
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Test that "scroll" on the document element does not scroll
+PASS document.documentElement.scrollTop is 0
+PASS document.documentElement.scrollLeft is 0
+PASS document.body.scrollTop is 0
+PASS document.body.scrollLeft is 0
+
+Test that "scrollTo" on the document element does not scroll
+PASS document.documentElement.scrollTop is 0
+PASS document.documentElement.scrollLeft is 0
+PASS document.body.scrollTop is 0
+PASS document.body.scrollLeft is 0
+
+Test that "scrollBy" on the document element does not scroll
+PASS document.documentElement.scrollTop is 0
+PASS document.documentElement.scrollLeft is 0
+PASS document.body.scrollTop is 0
+PASS document.body.scrollLeft is 0
+
+Test that "scroll" on the body element scrolls
+PASS document.documentElement.scrollTop is 0
+PASS document.documentElement.scrollLeft is 0
+PASS document.body.scrollTop is 100
+PASS document.body.scrollLeft is 50
+
+Test that "scrollTo" on the body element scrolls
+PASS document.documentElement.scrollTop is 0
+PASS document.documentElement.scrollLeft is 0
+PASS document.body.scrollTop is 200
+PASS document.body.scrollLeft is 450
+
+Test that "scrollBy" on the body element scrolls
+PASS document.documentElement.scrollTop is 0
+PASS document.documentElement.scrollLeft is 0
+PASS document.body.scrollTop is 300
+PASS document.body.scrollLeft is 750
+

Powered by Google App Engine
This is Rietveld 408576698