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

Unified Diff: LayoutTests/http/tests/svg/dynamic-image-root.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/svg/dynamic-image-root.svg
diff --git a/LayoutTests/http/tests/svg/dynamic-image-root.svg b/LayoutTests/http/tests/svg/dynamic-image-root.svg
new file mode 100644
index 0000000000000000000000000000000000000000..b35af561d0c7ee7e1c2d3c72e565fc99f2396720
--- /dev/null
+++ b/LayoutTests/http/tests/svg/dynamic-image-root.svg
@@ -0,0 +1,31 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ }
+
+ window.onload = function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ };
+ </script>
+ <text y="170" x="20" id="console">Result: </text>
+ <script>
+ var img = document.createElementNS("http://www.w3.org/2000/svg", "image");
+ img.x.baseVal.value = 20;
+ img.y.baseVal.value = 20;
+ img.width.baseVal.value = 100;
+ img.height.baseVal.value = 100;
+ img.addEventListener("load", loaded, false);
+ img.addEventListener("SVGLoad", loaded, false);
+ img.addEventListener("error", loaded, false);
+ img.addEventListener("SVGError", loaded, false);
+ img.href.baseVal = "http://127.0.0.1:8000/svg/resources/delayCachedLoad.php";
+ document.documentElement.appendChild(img);
+
+ function loaded(evt) {
+ document.getElementById("console").textContent += evt.type + "(" + evt.target + ") ";
+ }
+ </script>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698