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

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

Issue 59863003: window.scroll() without params should be ignored or throw an error (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase test & test results of non-numeric-values-numeric-parameters test. Created 7 years, 1 month 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 b04452d60f27a72eab49e4027dc33d7fc402037b..8206e95b10e73f555a1bcb10daac36d5ae3ec12d 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 treats the missing arguments as 0.
+This test makes sure that calling the window scrolling methods with less than 2 arguments throws exception.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -7,11 +7,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
window.scrollTo Tests
Testing - scrollTo with 0 arguments
-PASS window.scrollX is resetX
-PASS window.scrollY is resetY
+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.scrollX is resetX + x
-PASS window.scrollY is resetY
+PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 1 present..
Testing - scrollTo with more than 2 arguments
PASS window.scrollX is x
PASS window.scrollY is y
@@ -19,11 +17,9 @@ PASS window.scrollY is y
window.scroll Tests
Testing - scroll with 0 arguments
-PASS window.scrollX is resetX
-PASS window.scrollY is resetY
+PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'Window': 2 arguments required, but only 0 present..
Testing - scroll with 1 argument
-PASS window.scrollX is resetX + x
-PASS window.scrollY is resetY
+PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on 'Window': 2 arguments required, but only 1 present..
Testing - scroll with more than 2 arguments
PASS window.scrollX is x
PASS window.scrollY is y
@@ -31,11 +27,9 @@ PASS window.scrollY is y
window.scrollBy Tests
Testing - scrollBy with 0 arguments
-PASS window.scrollX is resetX
-PASS window.scrollY is resetY
+PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 0 present..
Testing - scrollBy with 1 argument
-PASS window.scrollX is resetX + x
-PASS window.scrollY is resetY
+PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 1 present..
Testing - scrollBy with more than 2 arguments
PASS window.scrollX is resetX + x
PASS window.scrollY is resetY + y

Powered by Google App Engine
This is Rietveld 408576698