OLD | NEW |
1 TOP | 1 TOP |
2 | 2 |
3 | 3 |
4 | 4 |
5 Scroll mouse wheel over here | 5 Scroll mouse wheel over here |
6 | 6 |
7 | 7 |
8 | 8 |
9 END | 9 END |
| 10 And scroll the document here |
10 Tests that wheel events with the ctrl modifier are handled properly | 11 Tests that wheel events with the ctrl modifier are handled properly |
11 | 12 |
12 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 13 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
13 | 14 |
14 | 15 |
| 16 Test mousewheel events over scrollable div |
| 17 With ctrl modifier set |
15 PASS wheelEventCount is 1 | 18 PASS wheelEventCount is 1 |
16 PASS deltaY is 80 | 19 PASS deltaY is 80 |
17 PASS ctrlKey is true | 20 PASS ctrlKey is true |
18 PASS testDiv.scrollTop is 0 | 21 PASS testDiv.scrollTop is 0 |
19 PASS wheelEventCount is 2 | 22 Without ctrl |
| 23 PASS wheelEventCount is 1 |
20 PASS deltaY is 80 | 24 PASS deltaY is 80 |
21 PASS ctrlKey is false | 25 PASS ctrlKey is false |
22 PASS testDiv.scrollTop is deltaY | 26 PASS testDiv.scrollTop is deltaY |
| 27 |
| 28 Test mousewheel events over the document |
| 29 With ctrl modifier set |
| 30 PASS wheelEventCount is 1 |
| 31 PASS deltaY is 80 |
| 32 PASS ctrlKey is true |
| 33 PASS document.body.scrollTop is 0 |
| 34 Now without ctrl |
| 35 PASS wheelEventCount is 1 |
| 36 PASS deltaY is 80 |
| 37 PASS ctrlKey is false |
| 38 PASS window.scrollY is deltaY |
23 PASS successfullyParsed is true | 39 PASS successfullyParsed is true |
24 | 40 |
25 TEST COMPLETE | 41 TEST COMPLETE |
26 | 42 |
OLD | NEW |