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 8206e95b10e73f555a1bcb10daac36d5ae3ec12d..cde2cd0e79157d9375ba63e195ca31ed6c43c2f7 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 throws exception. |
+This test makes sure that calling the window scrolling methods with less than 2 arguments or with an invalid third argument throws an exception. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
@@ -13,6 +13,14 @@ PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' |
Testing - scrollTo with more than 2 arguments |
PASS window.scrollX is x |
PASS window.scrollY is y |
+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.. |
window.scroll Tests |
@@ -23,6 +31,14 @@ PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on ' |
Testing - scroll with more than 2 arguments |
PASS window.scrollX is x |
PASS window.scrollY is y |
+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.. |
window.scrollBy Tests |
@@ -33,6 +49,14 @@ PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' |
Testing - scrollBy with more than 2 arguments |
PASS window.scrollX is resetX + x |
PASS window.scrollY is resetY + y |
+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. |
+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 successfullyParsed is true |
TEST COMPLETE |