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 9b08816a1f859185d845f57713c85b7a5c665a33..a0a4777a9116b8f2e158fc134029f5b67832dc64 100644 |
--- a/LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt |
+++ b/LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt |
@@ -22,9 +22,9 @@ PASS window.scrollTo({ left: x, top: y, behavior: "auto" }) did not throw except |
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.. |
+PASS window.scrollTo({ behavior: "" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': The provided value '' is not a valid enum value.. |
+PASS window.scrollTo({ left: x, top: y, behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': The provided value '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': The provided value '200' is not a valid enum value.. |
window.scroll Tests |
@@ -44,9 +44,9 @@ PASS window.scroll({ left: x, top: y, behavior: "auto" }) did not throw exceptio |
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.. |
+PASS window.scroll({ behavior: "" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The provided value '' is not a valid enum value.. |
+PASS window.scroll({ left: x, top: y, behavior: "abcd" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The provided value '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': The provided value '200' is not a valid enum value.. |
window.scrollBy Tests |
@@ -66,9 +66,9 @@ PASS window.scrollBy({ left: x, top: y, behavior: "auto" }) did not throw except |
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({ 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 window.scrollBy({ behavior: "" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': The provided value '' is not a valid enum value.. |
+PASS window.scrollBy({ left: x, top: y, behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': The provided value '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': The provided value '200' is not a valid enum value.. |
PASS successfullyParsed is true |
TEST COMPLETE |