blob: 6f50dde1f51a464b9d24304387cb9e1478d4b6ea [file] [log] [blame]
Tests large values for WheelEvent.wheelDeltaX / wheelDeltaY.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
wheelEvent = new WheelEvent('foo', { wheelDeltaX:-2147483648, wheelDeltaY:-2147483648 })
PASS wheelEvent.wheelDeltaX is -2147483648
PASS wheelEvent.wheelDeltaY is -2147483648
PASS wheelEvent.deltaX is 2147483648
PASS wheelEvent.deltaY is 2147483648
wheelEvent = new WheelEvent('foo', { wheelDeltaX:2147483647, wheelDeltaY:2147483647 })
PASS wheelEvent.wheelDeltaX is 2147483647
PASS wheelEvent.wheelDeltaY is 2147483647
PASS wheelEvent.deltaX is -2147483647
PASS wheelEvent.deltaY is -2147483647
wheelEvent = new WheelEvent('foo', { deltaX:-2147483647, deltaY:-2147483647 })
PASS wheelEvent.wheelDeltaX is 2147483647
PASS wheelEvent.wheelDeltaY is 2147483647
PASS wheelEvent.deltaX is -2147483647
PASS wheelEvent.deltaY is -2147483647
wheelEvent = new WheelEvent('foo', { deltaX:-2147483648, deltaY:-2147483648 })
PASS wheelEvent.wheelDeltaX is 2147483647
PASS wheelEvent.wheelDeltaY is 2147483647
PASS wheelEvent.deltaX is -2147483648
PASS wheelEvent.deltaY is -2147483648
wheelEvent = new WheelEvent('foo', { deltaX:2147483647, deltaY:2147483647 })
PASS wheelEvent.wheelDeltaX is -2147483647
PASS wheelEvent.wheelDeltaY is -2147483647
PASS wheelEvent.deltaX is 2147483647
PASS wheelEvent.deltaY is 2147483647
wheelEvent = new WheelEvent('foo', { deltaX:-2147483649, deltaY:-2147483649 })
PASS wheelEvent.wheelDeltaX is 2147483647
PASS wheelEvent.wheelDeltaY is 2147483647
PASS wheelEvent.deltaX is -2147483649
PASS wheelEvent.deltaY is -2147483649
wheelEvent = new WheelEvent('foo', { deltaX:2147483649, deltaY:2147483649 })
PASS wheelEvent.wheelDeltaX is -2147483648
PASS wheelEvent.wheelDeltaY is -2147483648
PASS wheelEvent.deltaX is 2147483649
PASS wheelEvent.deltaY is 2147483649
wheelEvent = document.createEvent('wheelevent')
wheelEvent.initWebKitWheelEvent(-2147483648, -2147483648)
PASS wheelEvent.deltaX is 2147483648
PASS wheelEvent.deltaY is 2147483648
wheelEvent = document.createEvent('wheelevent')
wheelEvent.initWebKitWheelEvent(2147483647, 2147483647)
PASS wheelEvent.deltaX is -2147483647
PASS wheelEvent.deltaY is -2147483647
PASS successfullyParsed is true
TEST COMPLETE