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