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 shouldBeNull("event.sourceDevice"); | |
| 19 } | |
| 20 catch (e) | |
| 21 { | |
| 22 testFailed("An exception was thrown: " + e.message); | |
|
tdresser
2015/06/08 12:36:39
What exception are you worried about here?
Would
lanwei
2015/06/09 20:07:10
You are right, if it is null, the test will fail.
| |
| 23 } | |
| 24 | |
| 25 </script> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |