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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html

Issue 2327923003: W3C auto test import CL. (Closed)
Patch Set: Created 4 years, 3 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 <meta charset="utf-8">
3 <title>Invalid uncompiled raw handlers should only be compiled when about to cal l them.</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <body>
7 <script>
8 setup({ allow_uncaught_exception: true });
9
10 test(function() {
11 var events = [];
12 window.onerror = function() {
13 events.push("Error");
14 };
15
16 var div = document.createElement("div");
17 div.addEventListener("click", function (e) { events.push("click 1") });
18 div.setAttribute("onclick", "}");
19 div.addEventListener("click", function (e) { events.push("click 2") });
20 div.dispatchEvent(new Event("click"));
21 assert_equals(div.onclick, null);
22 assert_array_equals(events, ["click 1", "error", "click 2"]);
23 });
24 </script>
25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698