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

Side by Side Diff: LayoutTests/fast/events/touch/create-touch-event-source-device.html

Issue 1161783006: Populates sourceDevice attribute into TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description('Test that touch events should have a sourceDevice and its firesTouc hEvents should be true.');
11
12 var event = null;
13
14 try
15 {
16 event = document.createEvent("TouchEvent");
17 shouldBeNonNull("event");
18 shouldBeNonNull("event.sourceDevice");
19 shouldBeTrue("event.sourceDevice.firesTouchEvents");
tdresser 2015/06/03 17:50:39 Should this be true? There isn't really a sourceDe
20
tdresser 2015/06/03 17:50:39 nit: Remove space.
lanwei 2015/06/05 21:33:12 Done.
21 }
22 catch (e)
23 {
24 testFailed("An exception was thrown: " + e.message);
25 }
26
27 </script>
28
29
30
31
32
33
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698