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

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

Issue 2261173005: wheel layout tests moved to fast/events/wheel folder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
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="../../resources/js-test.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 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698