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

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

Issue 984943002: Sync the Window interface with the many specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test Created 5 years, 9 months 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
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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. 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() did not throw exception. 10 PASS window.scrollTo() did not throw exception.
11 Testing - scrollTo with 1 non-dictionary argument 11 Testing - scrollTo with 1 non-dictionary argument
12 PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': parameter 1 ('scrollToOptions') is not an object.. 12 PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': parameter 1 ('options') is not an object..
13 Testing - scrollTo with a valid ScrollToOptions argument 13 Testing - scrollTo with a valid ScrollToOptions argument
14 PASS window.scrollTo({ }) did not throw exception. 14 PASS window.scrollTo({ }) did not throw exception.
15 PASS window.scrollTo({ left: x }) did not throw exception. 15 PASS window.scrollTo({ left: x }) did not throw exception.
16 PASS window.scrollTo({ top: y }) did not throw exception. 16 PASS window.scrollTo({ top: y }) did not throw exception.
17 PASS window.scrollTo({ behavior: "auto" }) did not throw exception. 17 PASS window.scrollTo({ behavior: "auto" }) did not throw exception.
18 PASS window.scrollTo({ behavior: "instant" }) did not throw exception. 18 PASS window.scrollTo({ behavior: "instant" }) did not throw exception.
19 PASS window.scrollTo({ behavior: "smooth" }) did not throw exception. 19 PASS window.scrollTo({ behavior: "smooth" }) did not throw exception.
20 PASS window.scrollTo({ left: x, top: y }) did not throw exception. 20 PASS window.scrollTo({ left: x, top: y }) did not throw exception.
21 PASS window.scrollTo({ left: x, top: y, behavior: "auto" }) did not throw except ion. 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. 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. 23 PASS window.scrollTo({ left: x, top: y, behavior: "smooth" }) did not throw exce ption.
24 Testing - scrollTo with an invalid ScrollToOptions argument 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.. 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.. 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.. 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..
28 28
29 window.scroll Tests 29 window.scroll Tests
30 30
31 Testing - scroll with 0 arguments 31 Testing - scroll with 0 arguments
32 PASS window.scroll() did not throw exception. 32 PASS window.scroll() did not throw exception.
33 Testing - scroll with 1 argument 33 Testing - scroll with 1 argument
34 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on ' Window': parameter 1 ('scrollOptions') is not an object.. 34 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on ' Window': parameter 1 ('options') is not an object..
35 Testing - scroll with a valid ScrollToOptions argument 35 Testing - scroll with a valid ScrollToOptions argument
36 PASS window.scroll({ }) did not throw exception. 36 PASS window.scroll({ }) did not throw exception.
37 PASS window.scroll({ left: x }) did not throw exception. 37 PASS window.scroll({ left: x }) did not throw exception.
38 PASS window.scroll({ top: y }) did not throw exception. 38 PASS window.scroll({ top: y }) did not throw exception.
39 PASS window.scroll({ behavior: "auto" }) did not throw exception. 39 PASS window.scroll({ behavior: "auto" }) did not throw exception.
40 PASS window.scroll({ behavior: "instant" }) did not throw exception. 40 PASS window.scroll({ behavior: "instant" }) did not throw exception.
41 PASS window.scroll({ behavior: "smooth" }) did not throw exception. 41 PASS window.scroll({ behavior: "smooth" }) did not throw exception.
42 PASS window.scroll({ left: x, top: y }) did not throw exception. 42 PASS window.scroll({ left: x, top: y }) did not throw exception.
43 PASS window.scroll({ left: x, top: y, behavior: "auto" }) did not throw exceptio n. 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. 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. 45 PASS window.scroll({ left: x, top: y, behavior: "smooth" }) did not throw except ion.
46 Testing - scroll with an invalid ScrollToOptions argument 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.. 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.. 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.. 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..
50 50
51 window.scrollBy Tests 51 window.scrollBy Tests
52 52
53 Testing - scrollBy with 0 arguments 53 Testing - scrollBy with 0 arguments
54 PASS window.scrollBy() did not throw exception. 54 PASS window.scrollBy() did not throw exception.
55 Testing - scrollBy with 1 argument 55 Testing - scrollBy with 1 argument
56 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': parameter 1 ('scrollToOptions') is not an object.. 56 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': parameter 1 ('options') is not an object..
57 Testing - scrollBy with a valid ScrollOptions argument 57 Testing - scrollBy with a valid ScrollOptions argument
58 PASS window.scrollBy({ }) did not throw exception. 58 PASS window.scrollBy({ }) did not throw exception.
59 PASS window.scrollBy({ left: x }) did not throw exception. 59 PASS window.scrollBy({ left: x }) did not throw exception.
60 PASS window.scrollBy({ top: y }) did not throw exception. 60 PASS window.scrollBy({ top: y }) did not throw exception.
61 PASS window.scrollBy({ behavior: "auto" }) did not throw exception. 61 PASS window.scrollBy({ behavior: "auto" }) did not throw exception.
62 PASS window.scrollBy({ behavior: "instant" }) did not throw exception. 62 PASS window.scrollBy({ behavior: "instant" }) did not throw exception.
63 PASS window.scrollBy({ behavior: "smooth" }) 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. 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. 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. 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. 67 PASS window.scrollBy({ left: x, top: y, behavior: "smooth" }) did not throw exce ption.
68 Testing - scrollBy with an invalid ScrollOptions argument 68 Testing - scrollBy with an invalid ScrollOptions argument
69 PASS window.scrollBy({ behavior: "" }) threw exception TypeError: Failed to exec ute 'scrollBy' on 'Window': member behavior ('') is not a valid enum value.. 69 PASS window.scrollBy({ behavior: "" }) threw exception TypeError: Failed to exec ute 'scrollBy' on 'Window': member behavior ('') is not a valid enum value..
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.. 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..
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.. 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..
72 PASS successfullyParsed is true 72 PASS successfullyParsed is true
73 73
74 TEST COMPLETE 74 TEST COMPLETE
75 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
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698