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 a valid ScrollOptions argument |
14 PASS window.scrollX is x | 14 PASS window.scrollTo(x, y, { }) did not throw exception. |
15 PASS window.scrollY is y | 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 t
o execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid.. |
| 20 PASS window.scrollTo(x, y, { behavior: "abcd" }) threw exception TypeError: Fail
ed to execute 'scrollTo' on 'Window': The ScrollBehavior provided is invalid.. |
| 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.. |
16 | 22 |
17 window.scroll Tests | 23 window.scroll Tests |
18 | 24 |
19 Testing - scroll with 0 arguments | 25 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.. | 26 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 | 27 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.. | 28 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 | 29 Testing - scroll with a valid ScrollOptions argument |
24 PASS window.scrollX is x | 30 PASS window.scroll(x, y, { }) did not throw exception. |
25 PASS window.scrollY is y | 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 execu
te 'scroll' on 'Window': parameter 3 ('scrollOptions') is not an object.. |
26 | 38 |
27 window.scrollBy Tests | 39 window.scrollBy Tests |
28 | 40 |
29 Testing - scrollBy with 0 arguments | 41 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.. | 42 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 | 43 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.. | 44 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 | 45 Testing - scrollBy with a valid ScrollOptions argument |
34 PASS window.scrollX is resetX + x | 46 PASS window.scrollBy(x, y, { }) did not throw exception. |
35 PASS window.scrollY is resetY + y | 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 t
o execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid.. |
| 52 PASS window.scrollBy(x, y, { behavior: "abcd" }) threw exception TypeError: Fail
ed to execute 'scrollBy' on 'Window': The ScrollBehavior provided is invalid.. |
| 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.. |
36 PASS successfullyParsed is true | 54 PASS successfullyParsed is true |
37 | 55 |
38 TEST COMPLETE | 56 TEST COMPLETE |
39 This box should force the window to have a scrollable area to test. | 57 This box should force the window to have a scrollable area to test. |
OLD | NEW |