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

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: rebase and add 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..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>
« no previous file with comments | « no previous file | LayoutTests/fast/events/dragevent-constructor-expected.txt » ('j') | Source/core/events/DragEvent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698