Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / Window / window-scroll-arguments-expected.txt
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.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6
7 window.scrollTo Tests
8
9 Testing - scrollTo with 0 arguments
10 PASS window.scrollTo() threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 0 present..
11 Testing - scrollTo with 1 argument
12 PASS window.scrollTo(x) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 1 present..
13 Testing - scrollTo with a valid ScrollOptions argument
14 PASS window.scrollTo(x, y, { }) did not throw exception.
15 PASS window.scrollTo(x, y, { behavior: "auto" }) did not throw exception.
16 PASS window.scrollTo(x, y, { behavior: "instant" }) did not throw exception.
17 PASS window.scrollTo(x, y, { behavior: "smooth" }) did not throw exception.
18 Testing - scrollTo with an invalid ScrollOptions argument
19 PASS window.scrollTo(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid..
20 PASS window.scrollTo(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid..
21 PASS window.scrollTo(x, y, 200, "text") threw exception TypeError: Failed to execute 'scrollTo' on 'Window': parameter 3 ('scrollOptions') is not an object..
22
23 window.scroll Tests
24
25 Testing - scroll with 0 arguments
26 PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'Window': 2 arguments required, but only 0 present..
27 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..
29 Testing - scroll with a valid ScrollOptions argument
30 PASS window.scroll(x, y, { }) did not throw exception.
31 PASS window.scroll(x, y, { behavior: "auto" }) did not throw exception.
32 PASS window.scroll(x, y, { behavior: "instant" }) did not throw exception.
33 PASS window.scroll(x, y, { behavior: "smooth" }) did not throw exception.
34 Testing - scroll with an invalid ScrollOptions argument
35 PASS window.scroll(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid..
36 PASS window.scroll(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid..
37 PASS window.scroll(x, y, 200, "text") threw exception TypeError: Failed to execute 'scroll' on 'Window': parameter 3 ('scrollOptions') is not an object..
38
39 window.scrollBy Tests
40
41 Testing - scrollBy with 0 arguments
42 PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' on 'Window': 2 arguments required, but only 0 present..
43 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..
45 Testing - scrollBy with a valid ScrollOptions argument
46 PASS window.scrollBy(x, y, { }) did not throw exception.
47 PASS window.scrollBy(x, y, { behavior: "auto" }) did not throw exception.
48 PASS window.scrollBy(x, y, { behavior: "instant" }) did not throw exception.
49 PASS window.scrollBy(x, y, { behavior: "smooth" }) did not throw exception.
50 Testing - scrollBy with an invalid ScrollOptions argument
51 PASS window.scrollBy(x, y, { behavior: "" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid..
52 PASS window.scrollBy(x, y, { behavior: "abcd" }) threw exception TypeError: Failed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid..
53 PASS window.scrollBy(x, y, 200, "text") threw exception TypeError: Failed to execute 'scrollBy' on 'Window': parameter 3 ('scrollOptions') is not an object..
54 PASS successfullyParsed is true
55
56 TEST COMPLETE
57 This box should force the window to have a scrollable area to test.