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

Side by Side Diff: LayoutTests/http/tests/svg/dynamic-image-after-docload.svg

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline test Created 6 years, 11 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 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="loaded(evt); testDone();">
2 <text y="170" x="20" id="console">Test didn't run.</text>
3 <script>
4 if (window.testRunner) {
5 testRunner.waitUntilDone();
6 testRunner.dumpAsText();
7 }
8
9 var results = new Array();
10
11 function loaded(evt) {
12 results.push(evt.type + "(" + evt.target + ")");
13 }
14
15 function testDone() {
16 if ( results.length != 2 ||
17 results[0] != "load([object SVGImageElement])" ||
18 results[1] != "load([object SVGSVGElement])") {
19 document.getElementById("console").textContent = "Failed - got " + res ults.join(", ");
20 } else {
21 document.getElementById("console").textContent = "Passed";
22 }
23
24 if (window.testRunner)
25 testRunner.notifyDone();
26 }
27
28 var img = document.createElementNS("http://www.w3.org/2000/svg", "image");
29 img.setAttribute("x", 20);
30 img.setAttribute("y", 20);
31 img.setAttribute("width", 100);
32 img.setAttribute("height", 100);
33 img.addEventListener("load", loaded, false);
34 img.addEventListener("SVGLoad", loaded, false);
35 img.addEventListener("error", loaded, false);
36 img.addEventListener("SVGError", loaded, false);
37 img.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "http://1 27.0.0.1:8000/svg/resources/delayCachedLoad.php");
38 document.documentElement.appendChild(img);
39 </script>
40 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/svg/dynamic-image-after-docload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698