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

Side by Side Diff: LayoutTests/svg/dom/SVGScriptElement/script-external-no-multiple-load.html

Issue 1141683003: Don't dispatch two 'load' events for external SVGScriptElement loads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/dom/SVGScriptElement/script-external-no-multiple-load-expected.txt » ('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/js-test.js></script>
3 <script>
4 window.jsTestIsAsync = true;
5
6 var loadEventsFired = 0;
7
8 onload = function() {
9 var newExternalScript = document.createElementNS("http://www.w3.org/2000/svg ", "script");
10 newExternalScript.onload = function() {
11 loadEventsFired++;
12 setTimeout(function() {
fs 2015/05/19 07:25:40 Not very fond of this, but did manage to come up w
pdr. 2015/05/19 18:18:26 I think this is fine. setTimeout is our hook for w
13 shouldBe("loadEventsFired", "1");
14 finishJSTest();
15 }, 0);
16 };
17 newExternalScript.setAttributeNS("http://www.w3.org/1999/xlink", "href", "re sources/script-load.js");
18 document.querySelector("svg").appendChild(newExternalScript);
19 }
20 </script>
21 <svg>
22 </svg>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/SVGScriptElement/script-external-no-multiple-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698