Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: LayoutTests/fast/events/dragevent-constructor.html

Issue 1232003009: Implement DragEvent and move MouseEvent.dataTransfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix failure of layouttest Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..af99b666550ae3d63d6ef06445210bb521aae1b3
--- /dev/null
+++ b/LayoutTests/fast/events/dragevent-constructor.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<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>

Powered by Google App Engine
This is Rietveld 408576698