OLD | NEW |
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 ('options') 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': The provided value '' 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': The provided value 'abcd' is no
t 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': The provided value '200' is not a
valid 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 ('options') 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': The provided value '' 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': The provided value 'abcd' 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.. | 49 PASS window.scroll({ left: x, top: y, behavior: 200 }) threw exception TypeError
: Failed to execute 'scroll' on 'Window': The provided value '200' is not a vali
d 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 ('options') 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': The provided value '' 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': The provided value 'abcd' is no
t 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': The provided value '200' is not a
valid 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. |
OLD | NEW |