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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <title>CustomEvent</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 test(function() {
8 var type = "foo";
9
10 var target = document.createElement("div");
11 target.addEventListener(type, this.step_func(function(evt) {
12 assert_equals(evt.type, type);
13 }), true);
14
15 var fooEvent = document.createEvent("CustomEvent");
16 fooEvent.initEvent(type, true, true);
17 target.dispatchEvent(fooEvent);
18 });
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698