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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/events/CustomEvent.html

Issue 2022203002: Import wpt@d510ec1abc30eee4c855c13842bc2f0dfa791f8b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Message changed by testharness.js update Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/wpt/dom/events/CustomEvent.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/CustomEvent.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/CustomEvent.html
new file mode 100644
index 0000000000000000000000000000000000000000..c55d5924bd5fe3e0fa93b79838bc3bdbfa23022a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/CustomEvent.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<title>CustomEvent</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="log"></div>
+<script>
+test(function() {
+ var type = "foo";
+
+ var target = document.createElement("div");
+ target.addEventListener(type, this.step_func(function(evt) {
+ assert_equals(evt.type, type);
+ }), true);
+
+ var fooEvent = document.createEvent("CustomEvent");
+ fooEvent.initEvent(type, true, true);
+ target.dispatchEvent(fooEvent);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698