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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/use-event-attribute.html

Issue 2186823002: Do not call an event listener on a cloned node in svg <use>'s UA shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip timeout test Created 4 years, 4 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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 window.targets = [];
6 async_test((t) => {
7 window.addEventListener('load', t.step_func(() => {
8 assert_array_equals(window.targets, [document.querySelector('image')]);
9 t.done();
10 }));
11 }, 'An event listener should not be called on a cloned node in a svg <use>\'s UA shadow tree.');
12 </script>
13 <svg>
14 <g id="a">
15 <image href="" onerror="window.targets.push(event.target);">
16 </g>
17 <use href="#a">
18 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698