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

Side by Side 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 unified diff | Download patch
OLDNEW
1 This test makes sure that calling the window scrolling methods with less than 2 arguments treats the missing arguments as 0. 1 This test makes sure that calling the window scrolling methods with less than 2 arguments throws exception.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 6
7 window.scrollTo Tests 7 window.scrollTo Tests
8 8
9 Testing - scrollTo with 0 arguments 9 Testing - scrollTo with 0 arguments
10 PASS window.scrollX is resetX 10 PASS window.scrollTo() threw exception TypeError: Failed to execute 'scrollTo' o n 'Window': 2 arguments required, but only 0 present..
11 PASS window.scrollY is resetY
12 Testing - scrollTo with 1 argument 11 Testing - scrollTo with 1 argument
13 PASS window.scrollX is resetX + x 12 PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 1 present..
14 PASS window.scrollY is resetY
15 Testing - scrollTo with more than 2 arguments 13 Testing - scrollTo with more than 2 arguments
16 PASS window.scrollX is x 14 PASS window.scrollX is x
17 PASS window.scrollY is y 15 PASS window.scrollY is y
18 16
19 window.scroll Tests 17 window.scroll Tests
20 18
21 Testing - scroll with 0 arguments 19 Testing - scroll with 0 arguments
22 PASS window.scrollX is resetX 20 PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'W indow': 2 arguments required, but only 0 present..
23 PASS window.scrollY is resetY
24 Testing - scroll with 1 argument 21 Testing - scroll with 1 argument
25 PASS window.scrollX is resetX + x 22 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on ' Window': 2 arguments required, but only 1 present..
26 PASS window.scrollY is resetY
27 Testing - scroll with more than 2 arguments 23 Testing - scroll with more than 2 arguments
28 PASS window.scrollX is x 24 PASS window.scrollX is x
29 PASS window.scrollY is y 25 PASS window.scrollY is y
30 26
31 window.scrollBy Tests 27 window.scrollBy Tests
32 28
33 Testing - scrollBy with 0 arguments 29 Testing - scrollBy with 0 arguments
34 PASS window.scrollX is resetX 30 PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' o n 'Window': 2 arguments required, but only 0 present..
35 PASS window.scrollY is resetY
36 Testing - scrollBy with 1 argument 31 Testing - scrollBy with 1 argument
37 PASS window.scrollX is resetX + x 32 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 1 present..
38 PASS window.scrollY is resetY
39 Testing - scrollBy with more than 2 arguments 33 Testing - scrollBy with more than 2 arguments
40 PASS window.scrollX is resetX + x 34 PASS window.scrollX is resetX + x
41 PASS window.scrollY is resetY + y 35 PASS window.scrollY is resetY + y
42 PASS successfullyParsed is true 36 PASS successfullyParsed is true
43 37
44 TEST COMPLETE 38 TEST COMPLETE
45 This box should force the window to have a scrollable area to test. 39 This box should force the window to have a scrollable area to test.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698