Chromium Code Reviews| Index: LayoutTests/fast/events/dragevent-constructor.html |
| diff --git a/LayoutTests/fast/events/dragevent-constructor.html b/LayoutTests/fast/events/dragevent-constructor.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b0a3a196fc2b7388397f994eb27907464dec0514 |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/dragevent-constructor.html |
| @@ -0,0 +1,22 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<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.
|
| +<link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#dragevent"> |
| +<script src="../../resources/js-test.js"></script> |
| +</head> |
| +<body> |
| +<script> |
| +description("Tests the constructor of the standard drag event"); |
| + |
| +var testEvent; |
| +shouldNotThrow("testEvent = new DragEvent('dragstart')"); |
| +shouldBe("testEvent.__proto__", "DragEvent.prototype"); |
| +shouldBe("testEvent.dataTransfer", "null"); |
| + |
| +shouldNotThrow("testEvent = new DragEvent('dragstart', { dataTransfer:null })"); |
| +shouldBe("testEvent.__proto__", "DragEvent.prototype"); |
| +shouldBe("testEvent.dataTransfer", "null"); |
| + |
| +</script> |
| +</body> |
| +</html> |