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

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: Layout test and webexposed Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/uievent-with-inputdevice-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <head>
2 <script src="../../resources/js-test.js"></script>
3 </head>
4 <body>
5 <script>
6 description("This tests that UIEvent will have sourceDevice set to be null b y default, and it can also be passed when initialization.")
7
8 var event = document.createEvent('UIEvent');
9 shouldBeNonNull("event");
10 shouldBeNull("event.sourceDevice");
11
12 event = new UIEvent('eventType', { sourceDevice: new InputDevice({ firesTouc hEvents: false }) });
13 shouldBeNonNull("event.sourceDevice");
14 shouldBeFalse("event.sourceDevice.firesTouchEvents");
15
16 event = new UIEvent('eventType', { sourceDevice: new InputDevice({ firesTouc hEvents: true }) });
17 shouldBeNonNull("event.sourceDevice");
18 shouldBeTrue("event.sourceDevice.firesTouchEvents");
19
20 </script>
21 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/uievent-with-inputdevice-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698