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

Side by Side Diff: LayoutTests/svg/custom/image-svgload-after-docload.html

Issue 375923002: Don't dispatch '(SVG)load' to ancestors of <svg:image> after doc. 'load' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop assert_true; use toSVGElement. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/custom/load-image-removed-in-onload.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <svg></svg>
5 <script>
6 var t = async_test("No 'load' is fired on the SVG root when an image is inserted into it.");
7
8 window.onload = function() {
9 var svgRoot = document.querySelector('svg');
10 svgRoot.onload = t.unreached_func("'load' should not fire on the SVG root.");
11
12 var image = document.createElementNS('http://www.w3.org/2000/svg', 'image');
13 image.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'resources/ red-checker.png');
14 image.setAttribute('width', 10);
15 image.setAttribute('height', 10);
16 image.onload = t.step_func(function() {
17 setTimeout(function() { t.done(); }, 0);
18 });
19 svgRoot.appendChild(image);
20 }
21 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/load-image-removed-in-onload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698