Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
|
Rick Byers
2015/07/30 17:24:18
nit: you can ommit html, head and body tags: https
Jimmy Jo
2015/07/31 03:43:39
Done.
| |
| 4 <link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#d ragevent"> | |
| 5 <script src="../../resources/js-test.js"></script> | |
| 6 </head> | |
| 7 <body> | |
| 8 <script> | |
| 9 description("Tests the constructor of the standard drag event"); | |
| 10 | |
| 11 var testEvent; | |
| 12 shouldNotThrow("testEvent = new DragEvent('dragstart')"); | |
| 13 shouldBe("testEvent.__proto__", "DragEvent.prototype"); | |
| 14 shouldBe("testEvent.dataTransfer", "null"); | |
| 15 | |
| 16 shouldNotThrow("testEvent = new DragEvent('dragstart', { dataTransfer:null })"); | |
| 17 shouldBe("testEvent.__proto__", "DragEvent.prototype"); | |
| 18 shouldBe("testEvent.dataTransfer", "null"); | |
| 19 | |
| 20 </script> | |
| 21 </body> | |
| 22 </html> | |
| OLD | NEW |