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

Unified Diff: LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt

Issue 774203003: Update Window API for CSSOM smooth scrolling to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expected results 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/dom/Window/window-scroll-arguments-expected.txt
diff --git a/LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt b/LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt
index 51194ad95ee7582746d3bb8add88a99ee8d27cbf..3149b027454f1a3f312c5ed133ad8796604d0a76 100644
--- a/LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt
+++ b/LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt
@@ -1,4 +1,4 @@
-This test makes sure that calling the window scrolling methods with less than 2 arguments or with an invalid third argument throws an exception.
+This test makes sure that calling the window scrolling methods with a single non-dictionary argument or with a dictionary whose 'behavior' field is invalid throws an exception.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -7,50 +7,68 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
window.scrollTo Tests
Testing - scrollTo with 0 arguments
-PASS window.scrollTo() threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 0 present..
-Testing - scrollTo with 1 argument
-PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 1 present..
-Testing - scrollTo with a valid ScrollOptions argument
-PASS window.scrollTo(x, y, { }) did not throw exception.
-PASS window.scrollTo(x, y, { behavior: "auto" }) did not throw exception.
-PASS window.scrollTo(x, y, { behavior: "instant" }) did not throw exception.
-PASS window.scrollTo(x, y, { behavior: "smooth" }) did not throw exception.
-Testing - scrollTo with an invalid ScrollOptions argument
-PASS window.scrollTo(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid..
-PASS window.scrollTo(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid..
-PASS window.scrollTo(x, y, 200, "text") threw exception TypeError: Failed to execute 'scrollTo' on 'Window': parameter 3 ('scrollOptions') is not an object..
+PASS window.scrollTo() did not throw exception.
+Testing - scrollTo with 1 non-dictionary argument
+PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': parameter 1 ('scrollToOptions') is not an object..
+Testing - scrollTo with a valid ScrollToOptions argument
+PASS window.scrollTo({ }) did not throw exception.
+PASS window.scrollTo({ left: x }) did not throw exception.
+PASS window.scrollTo({ top: y }) did not throw exception.
+PASS window.scrollTo({ behavior: "auto" }) did not throw exception.
+PASS window.scrollTo({ behavior: "instant" }) did not throw exception.
+PASS window.scrollTo({ behavior: "smooth" }) did not throw exception.
+PASS window.scrollTo({ left: x, top: y }) did not throw exception.
+PASS window.scrollTo({ left: x, top: y, behavior: "auto" }) did not throw exception.
+PASS window.scrollTo({ left: x, top: y, behavior: "instant" }) did not throw exception.
+PASS window.scrollTo({ left: x, top: y, behavior: "smooth" }) did not throw exception.
+Testing - scrollTo with an invalid ScrollToOptions argument
+PASS window.scrollTo({ behavior: "" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': member behavior ('') is not a valid enum value..
+PASS window.scrollTo({ left: x, top: y, behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': member behavior ('abcd') is not a valid enum value..
+PASS window.scrollTo({ left: x, top: y, behavior: 200 }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': member behavior ('200') is not a valid enum value..
window.scroll Tests
Testing - scroll with 0 arguments
-PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'Window': 2 arguments required, but only 0 present..
+PASS window.scroll() did not throw exception.
Testing - scroll with 1 argument
-PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on 'Window': 2 arguments required, but only 1 present..
-Testing - scroll with a valid ScrollOptions argument
-PASS window.scroll(x, y, { }) did not throw exception.
-PASS window.scroll(x, y, { behavior: "auto" }) did not throw exception.
-PASS window.scroll(x, y, { behavior: "instant" }) did not throw exception.
-PASS window.scroll(x, y, { behavior: "smooth" }) did not throw exception.
-Testing - scroll with an invalid ScrollOptions argument
-PASS window.scroll(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid..
-PASS window.scroll(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid..
-PASS window.scroll(x, y, 200, "text") threw exception TypeError: Failed to execute 'scroll' on 'Window': parameter 3 ('scrollOptions') is not an object..
+PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on 'Window': parameter 1 ('scrollOptions') is not an object..
+Testing - scroll with a valid ScrollToOptions argument
+PASS window.scroll({ }) did not throw exception.
+PASS window.scroll({ left: x }) did not throw exception.
+PASS window.scroll({ top: y }) did not throw exception.
+PASS window.scroll({ behavior: "auto" }) did not throw exception.
+PASS window.scroll({ behavior: "instant" }) did not throw exception.
+PASS window.scroll({ behavior: "smooth" }) did not throw exception.
+PASS window.scroll({ left: x, top: y }) did not throw exception.
+PASS window.scroll({ left: x, top: y, behavior: "auto" }) did not throw exception.
+PASS window.scroll({ left: x, top: y, behavior: "instant" }) did not throw exception.
+PASS window.scroll({ left: x, top: y, behavior: "smooth" }) did not throw exception.
+Testing - scroll with an invalid ScrollToOptions argument
+PASS window.scroll({ behavior: "" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': member behavior ('') is not a valid enum value..
+PASS window.scroll({ left: x, top: y, behavior: "abcd" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': member behavior ('abcd') is not a valid enum value..
+PASS window.scroll({ left: x, top: y, behavior: 200 }) threw exception TypeError: Failed to execute 'scroll' on 'Window': member behavior ('200') is not a valid enum value..
window.scrollBy Tests
Testing - scrollBy with 0 arguments
-PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 0 present..
+PASS window.scrollBy() did not throw exception.
Testing - scrollBy with 1 argument
-PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 1 present..
+PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': parameter 1 ('scrollToOptions') is not an object..
Testing - scrollBy with a valid ScrollOptions argument
-PASS window.scrollBy(x, y, { }) did not throw exception.
-PASS window.scrollBy(x, y, { behavior: "auto" }) did not throw exception.
-PASS window.scrollBy(x, y, { behavior: "instant" }) did not throw exception.
-PASS window.scrollBy(x, y, { behavior: "smooth" }) did not throw exception.
+PASS window.scrollBy({ }) did not throw exception.
+PASS window.scrollBy({ left: x }) did not throw exception.
+PASS window.scrollBy({ top: y }) did not throw exception.
+PASS window.scrollBy({ behavior: "auto" }) did not throw exception.
+PASS window.scrollBy({ behavior: "instant" }) did not throw exception.
+PASS window.scrollBy({ behavior: "smooth" }) did not throw exception.
+PASS window.scrollBy({ left: x, top: y }) did not throw exception.
+PASS window.scrollBy({ left: x, top: y, behavior: "auto" }) did not throw exception.
+PASS window.scrollBy({ left: x, top: y, behavior: "instant" }) did not throw exception.
+PASS window.scrollBy({ left: x, top: y, behavior: "smooth" }) did not throw exception.
Testing - scrollBy with an invalid ScrollOptions argument
-PASS window.scrollBy(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid..
-PASS window.scrollBy(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid..
-PASS window.scrollBy(x, y, 200, "text") threw exception TypeError: Failed to execute 'scrollBy' on 'Window': parameter 3 ('scrollOptions') is not an object..
+PASS window.scrollBy({ behavior: "" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': member behavior ('') is not a valid enum value..
+PASS window.scrollBy({ left: x, top: y, behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': member behavior ('abcd') is not a valid enum value..
+PASS window.scrollBy({ left: x, top: y, behavior: 200 }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': member behavior ('200') is not a valid enum value..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698