Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |