Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: LayoutTests/fast/events/wheelevent-constructor.html

Issue 22859012: Add support for DOM Level 3 WheelEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename prefixedType() to legacyType() Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEven t">
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests the constructor of the standard wheel event");
10
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");
18
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");
25
26 </script>
27 <script src="../js/resources/js-test-post.js"></script>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/wheelevent-basic-expected.txt ('k') | LayoutTests/fast/events/wheelevent-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698