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 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 This test makes sure that calling the window scrolling methods with less than 2 arguments or with an invalid third argument throws an exception. 1 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 thro ws an 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.scrollTo() threw exception TypeError: Failed to execute 'scrollTo' o n 'Window': 2 arguments required, but only 0 present.. 10 PASS window.scrollTo() did not throw exception.
11 Testing - scrollTo with 1 argument 11 Testing - scrollTo with 1 non-dictionary argument
12 PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 1 present.. 12 PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': parameter 1 ('scrollToOptions') is not an object..
13 Testing - scrollTo with a valid ScrollOptions argument 13 Testing - scrollTo with a valid ScrollToOptions argument
14 PASS window.scrollTo(x, y, { }) did not throw exception. 14 PASS window.scrollTo({ }) did not throw exception.
15 PASS window.scrollTo(x, y, { behavior: "auto" }) did not throw exception. 15 PASS window.scrollTo({ left: x }) did not throw exception.
16 PASS window.scrollTo(x, y, { behavior: "instant" }) did not throw exception. 16 PASS window.scrollTo({ top: y }) did not throw exception.
17 PASS window.scrollTo(x, y, { behavior: "smooth" }) did not throw exception. 17 PASS window.scrollTo({ behavior: "auto" }) did not throw exception.
18 Testing - scrollTo with an invalid ScrollOptions argument 18 PASS window.scrollTo({ behavior: "instant" }) did not throw exception.
19 PASS window.scrollTo(x, y, { behavior: "" }) threw exception TypeError: Failed t o execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid.. 19 PASS window.scrollTo({ behavior: "smooth" }) did not throw exception.
20 PASS window.scrollTo(x, y, { behavior: "abcd" }) threw exception TypeError: Fail ed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid.. 20 PASS window.scrollTo({ left: x, top: y }) did not throw exception.
21 PASS window.scrollTo(x, y, 200, "text") threw exception TypeError: Failed to exe cute 'scrollTo' on 'Window': parameter 3 ('scrollOptions') is not an object.. 21 PASS window.scrollTo({ left: x, top: y, behavior: "auto" }) did not throw except ion.
22 PASS window.scrollTo({ left: x, top: y, behavior: "instant" }) did not throw exc eption.
23 PASS window.scrollTo({ left: x, top: y, behavior: "smooth" }) did not throw exce ption.
24 Testing - scrollTo with an invalid ScrollToOptions argument
25 PASS window.scrollTo({ behavior: "" }) threw exception TypeError: Failed to exec ute 'scrollTo' on 'Window': member behavior ('') is not a valid enum value..
26 PASS window.scrollTo({ left: x, top: y, behavior: "abcd" }) threw exception Type Error: Failed to execute 'scrollTo' on 'Window': member behavior ('abcd') is not a valid enum value..
27 PASS window.scrollTo({ left: x, top: y, behavior: 200 }) threw exception TypeErr or: Failed to execute 'scrollTo' on 'Window': member behavior ('200') is not a v alid enum value..
22 28
23 window.scroll Tests 29 window.scroll Tests
24 30
25 Testing - scroll with 0 arguments 31 Testing - scroll with 0 arguments
26 PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'W indow': 2 arguments required, but only 0 present.. 32 PASS window.scroll() did not throw exception.
27 Testing - scroll with 1 argument 33 Testing - scroll with 1 argument
28 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on ' Window': 2 arguments required, but only 1 present.. 34 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on ' Window': parameter 1 ('scrollOptions') is not an object..
29 Testing - scroll with a valid ScrollOptions argument 35 Testing - scroll with a valid ScrollToOptions argument
30 PASS window.scroll(x, y, { }) did not throw exception. 36 PASS window.scroll({ }) did not throw exception.
31 PASS window.scroll(x, y, { behavior: "auto" }) did not throw exception. 37 PASS window.scroll({ left: x }) did not throw exception.
32 PASS window.scroll(x, y, { behavior: "instant" }) did not throw exception. 38 PASS window.scroll({ top: y }) did not throw exception.
33 PASS window.scroll(x, y, { behavior: "smooth" }) did not throw exception. 39 PASS window.scroll({ behavior: "auto" }) did not throw exception.
34 Testing - scroll with an invalid ScrollOptions argument 40 PASS window.scroll({ behavior: "instant" }) did not throw exception.
35 PASS window.scroll(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid.. 41 PASS window.scroll({ behavior: "smooth" }) did not throw exception.
36 PASS window.scroll(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid.. 42 PASS window.scroll({ left: x, top: y }) did not throw exception.
37 PASS window.scroll(x, y, 200, "text") threw exception TypeError: Failed to execu te 'scroll' on 'Window': parameter 3 ('scrollOptions') is not an object.. 43 PASS window.scroll({ left: x, top: y, behavior: "auto" }) did not throw exceptio n.
44 PASS window.scroll({ left: x, top: y, behavior: "instant" }) did not throw excep tion.
45 PASS window.scroll({ left: x, top: y, behavior: "smooth" }) did not throw except ion.
46 Testing - scroll with an invalid ScrollToOptions argument
47 PASS window.scroll({ behavior: "" }) threw exception TypeError: Failed to execut e 'scroll' on 'Window': member behavior ('') is not a valid enum value..
48 PASS window.scroll({ left: x, top: y, behavior: "abcd" }) threw exception TypeEr ror: Failed to execute 'scroll' on 'Window': member behavior ('abcd') is not a v alid enum value..
49 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..
38 50
39 window.scrollBy Tests 51 window.scrollBy Tests
40 52
41 Testing - scrollBy with 0 arguments 53 Testing - scrollBy with 0 arguments
42 PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' o n 'Window': 2 arguments required, but only 0 present.. 54 PASS window.scrollBy() did not throw exception.
43 Testing - scrollBy with 1 argument 55 Testing - scrollBy with 1 argument
44 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 1 present.. 56 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': parameter 1 ('scrollToOptions') is not an object..
45 Testing - scrollBy with a valid ScrollOptions argument 57 Testing - scrollBy with a valid ScrollOptions argument
46 PASS window.scrollBy(x, y, { }) did not throw exception. 58 PASS window.scrollBy({ }) did not throw exception.
47 PASS window.scrollBy(x, y, { behavior: "auto" }) did not throw exception. 59 PASS window.scrollBy({ left: x }) did not throw exception.
48 PASS window.scrollBy(x, y, { behavior: "instant" }) did not throw exception. 60 PASS window.scrollBy({ top: y }) did not throw exception.
49 PASS window.scrollBy(x, y, { behavior: "smooth" }) did not throw exception. 61 PASS window.scrollBy({ behavior: "auto" }) did not throw exception.
62 PASS window.scrollBy({ behavior: "instant" }) did not throw exception.
63 PASS window.scrollBy({ behavior: "smooth" }) did not throw exception.
64 PASS window.scrollBy({ left: x, top: y }) did not throw exception.
65 PASS window.scrollBy({ left: x, top: y, behavior: "auto" }) did not throw except ion.
66 PASS window.scrollBy({ left: x, top: y, behavior: "instant" }) did not throw exc eption.
67 PASS window.scrollBy({ left: x, top: y, behavior: "smooth" }) did not throw exce ption.
50 Testing - scrollBy with an invalid ScrollOptions argument 68 Testing - scrollBy with an invalid ScrollOptions argument
51 PASS window.scrollBy(x, y, { behavior: "" }) threw exception TypeError: Failed t o execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid.. 69 PASS window.scrollBy({ behavior: "" }) threw exception TypeError: Failed to exec ute 'scrollBy' on 'Window': member behavior ('') is not a valid enum value..
52 PASS window.scrollBy(x, y, { behavior: "abcd" }) threw exception TypeError: Fail ed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid.. 70 PASS window.scrollBy({ left: x, top: y, behavior: "abcd" }) threw exception Type Error: Failed to execute 'scrollBy' on 'Window': member behavior ('abcd') is not a valid enum value..
53 PASS window.scrollBy(x, y, 200, "text") threw exception TypeError: Failed to exe cute 'scrollBy' on 'Window': parameter 3 ('scrollOptions') is not an object.. 71 PASS window.scrollBy({ left: x, top: y, behavior: 200 }) threw exception TypeErr or: Failed to execute 'scrollBy' on 'Window': member behavior ('200') is not a v alid enum value..
54 PASS successfullyParsed is true 72 PASS successfullyParsed is true
55 73
56 TEST COMPLETE 74 TEST COMPLETE
57 This box should force the window to have a scrollable area to test. 75 This box should force the window to have a scrollable area to test.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698