Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / wheelevent-constructor.html
blobe4b30521a5d25bd00e1ba7dff171f13e6d93d35c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEvent">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests the constructor of the standard wheel event");
11 var testEvent;
12 shouldNotThrow("testEvent = new WheelEvent('wheel')");
13 shouldBe("testEvent.__proto__", "WheelEvent.prototype");
14 shouldBe("testEvent.deltaX", "0");
15 shouldBe("testEvent.deltaY", "0");
16 shouldBe("testEvent.deltaZ", "0");
17 shouldBe("testEvent.deltaMode", "WheelEvent.DOM_DELTA_PIXEL");
19 shouldNotThrow("testEvent = new WheelEvent('wheel', { deltaX: 10.2, deltaY: 20.3, deltaZ: 30.4, deltaMode: WheelEvent.DOM_DELTA_PAGE })");
20 shouldBe("testEvent.__proto__", "WheelEvent.prototype");
21 shouldBe("testEvent.deltaX", "10.2");
22 shouldBe("testEvent.deltaY", "20.3");
23 shouldBe("testEvent.deltaZ", "30.4");
24 shouldBe("testEvent.deltaMode", "WheelEvent.DOM_DELTA_PAGE");
26 </script>
27 </body>
28 </html>