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

Side by Side Diff: LayoutTests/fast/events/uievent-with-inputdevice.html

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 <head>
2 <script src="../../resources/js-test.js"></script>
3 </head>
4 <body>
5 <script>
6 description("This tests that all the subclasses of UIEvent will have sourceD evice set to be null by default, and it can also be passed when initialization." )
7
8 if (window.testRunner)
9 testRunner.dumpAsText();
10
11 var onClickCalled = false;
12
13 var onclick = function(e) {
Rick Byers 2015/05/28 00:11:43 You should probably make this document.addEventLis
14 onClickCalled = true;
15 };
16
17 var e = new MouseEvent('click', { clientX: 10, clientY: 20, sourceDevice: ne w InputDevice({ firesTouchEvents: true })} );
18 document.dispatchEvent(e);
19
20 shouldBeFalse('onClickCalled');
21
22 </script>
23 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/uievent-with-inputdevice-expected.txt » ('j') | Source/core/events/UIEvent.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698