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