OLD | NEW |
1 This test makes sure that calling the window scrolling methods with less than 2
arguments throws exception. | 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 | 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() threw exception TypeError: Failed to execute 'scrollTo' o
n 'Window': 2 arguments required, but only 0 present.. |
11 Testing - scrollTo with 1 argument | 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.. | 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 more than 2 arguments | 13 Testing - scrollTo with more than 2 arguments |
14 PASS window.scrollX is x | 14 PASS window.scrollX is x |
15 PASS window.scrollY is y | 15 PASS window.scrollY is y |
| 16 Testing - scrollTo with a valid ScrollOptions argument |
| 17 PASS window.scrollTo(x, y, { }) did not throw exception. |
| 18 PASS window.scrollTo(x, y, { behavior: "auto" }) did not throw exception. |
| 19 PASS window.scrollTo(x, y, { behavior: "instant" }) did not throw exception. |
| 20 PASS window.scrollTo(x, y, { behavior: "smooth" }) did not throw exception. |
| 21 Testing - scrollTo with an invalid ScrollOptions argument |
| 22 PASS window.scrollTo(x, y, { behavior: "" }) threw exception TypeError: Failed t
o execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid.. |
| 23 PASS window.scrollTo(x, y, { behavior: "abcd" }) threw exception TypeError: Fail
ed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid.. |
16 | 24 |
17 window.scroll Tests | 25 window.scroll Tests |
18 | 26 |
19 Testing - scroll with 0 arguments | 27 Testing - scroll with 0 arguments |
20 PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'W
indow': 2 arguments required, but only 0 present.. | 28 PASS window.scroll() threw exception TypeError: Failed to execute 'scroll' on 'W
indow': 2 arguments required, but only 0 present.. |
21 Testing - scroll with 1 argument | 29 Testing - scroll with 1 argument |
22 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on '
Window': 2 arguments required, but only 1 present.. | 30 PASS window.scroll(x) threw exception TypeError: Failed to execute 'scroll' on '
Window': 2 arguments required, but only 1 present.. |
23 Testing - scroll with more than 2 arguments | 31 Testing - scroll with more than 2 arguments |
24 PASS window.scrollX is x | 32 PASS window.scrollX is x |
25 PASS window.scrollY is y | 33 PASS window.scrollY is y |
| 34 Testing - scroll with a valid ScrollOptions argument |
| 35 PASS window.scroll(x, y, { }) did not throw exception. |
| 36 PASS window.scroll(x, y, { behavior: "auto" }) did not throw exception. |
| 37 PASS window.scroll(x, y, { behavior: "instant" }) did not throw exception. |
| 38 PASS window.scroll(x, y, { behavior: "smooth" }) did not throw exception. |
| 39 Testing - scroll with an invalid ScrollOptions argument |
| 40 PASS window.scroll(x, y, { behavior: "" }) threw exception TypeError: Failed to
execute 'scroll' on 'Window': The ScrollBehavior provided is invalid.. |
| 41 PASS window.scroll(x, y, { behavior: "abcd" }) threw exception TypeError: Failed
to execute 'scroll' on 'Window': The ScrollBehavior provided is invalid.. |
26 | 42 |
27 window.scrollBy Tests | 43 window.scrollBy Tests |
28 | 44 |
29 Testing - scrollBy with 0 arguments | 45 Testing - scrollBy with 0 arguments |
30 PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' o
n 'Window': 2 arguments required, but only 0 present.. | 46 PASS window.scrollBy() threw exception TypeError: Failed to execute 'scrollBy' o
n 'Window': 2 arguments required, but only 0 present.. |
31 Testing - scrollBy with 1 argument | 47 Testing - scrollBy with 1 argument |
32 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy'
on 'Window': 2 arguments required, but only 1 present.. | 48 PASS window.scrollBy(x) threw exception TypeError: Failed to execute 'scrollBy'
on 'Window': 2 arguments required, but only 1 present.. |
33 Testing - scrollBy with more than 2 arguments | 49 Testing - scrollBy with more than 2 arguments |
34 PASS window.scrollX is resetX + x | 50 PASS window.scrollX is resetX + x |
35 PASS window.scrollY is resetY + y | 51 PASS window.scrollY is resetY + y |
| 52 Testing - scrollBy with a valid ScrollOptions argument |
| 53 PASS window.scrollBy(x, y, { }) did not throw exception. |
| 54 PASS window.scrollBy(x, y, { behavior: "auto" }) did not throw exception. |
| 55 PASS window.scrollBy(x, y, { behavior: "instant" }) did not throw exception. |
| 56 PASS window.scrollBy(x, y, { behavior: "smooth" }) did not throw exception. |
| 57 Testing - scrollBy with an invalid ScrollOptions argument |
| 58 PASS window.scrollBy(x, y, { behavior: "" }) threw exception TypeError: Failed t
o execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid.. |
| 59 PASS window.scrollBy(x, y, { behavior: "abcd" }) threw exception TypeError: Fail
ed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid.. |
36 PASS successfullyParsed is true | 60 PASS successfullyParsed is true |
37 | 61 |
38 TEST COMPLETE | 62 TEST COMPLETE |
39 This box should force the window to have a scrollable area to test. | 63 This box should force the window to have a scrollable area to test. |
OLD | NEW |