35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
TOP TOP TOP TOP TOP TOP TOP TOP TOP TOP TOP TOP TOP TOP
|
|
Scroll mouse wheel over here
|
|
Scroll mouse wheel over here
|
|
Scroll mouse wheel over here
|
|
Scroll mouse wheel over here
|
|
Scroll mouse wheel over here
|
|
Scroll mouse wheel over here
|
|
END END END END END END END END END END END END END END
|
|
Tests the basic functionality of the standard wheel event
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
PASS WheelEvent.prototype.__proto__ is MouseEvent.prototype
|
|
PASS WheelEvent.DOM_DELTA_PIXEL is 0x00
|
|
PASS WheelEvent.DOM_DELTA_LINE is 0x01
|
|
PASS WheelEvent.DOM_DELTA_PAGE is 0x02
|
|
PASS window.onwheel is null
|
|
PASS document.onwheel is null
|
|
PASS testDiv.onwheel is null
|
|
Wheel event fired
|
|
PASS testEvent.__proto__ is WheelEvent.prototype
|
|
PASS testEvent.__proto__.__proto__ is MouseEvent.prototype
|
|
PASS testEvent.deltaX > 0 is true
|
|
PASS testEvent.deltaY > 0 is true
|
|
PASS testEvent.deltaZ is 0
|
|
PASS testEvent.deltaMode is WheelEvent.DOM_DELTA_PIXEL
|
|
Scroll event fired
|
|
PASS eventDeltaX is scrollDeltaX
|
|
PASS eventDeltaY is scrollDeltaY
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|