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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/svg/dynamic-image-after-docload-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/svg/dynamic-image-after-docload.svg
diff --git a/LayoutTests/http/tests/svg/dynamic-image-after-docload.svg b/LayoutTests/http/tests/svg/dynamic-image-after-docload.svg
new file mode 100644
index 0000000000000000000000000000000000000000..34ca27fd152d6823cdd67e460b5f7f0cb5edcc56
--- /dev/null
+++ b/LayoutTests/http/tests/svg/dynamic-image-after-docload.svg
@@ -0,0 +1,40 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="loaded(evt); testDone();">
+ <text y="170" x="20" id="console">Test didn't run.</text>
+ <script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ }
+
+ var results = new Array();
+
+ function loaded(evt) {
+ results.push(evt.type + "(" + evt.target + ")");
+ }
+
+ function testDone() {
+ if ( results.length != 2 ||
+ results[0] != "load([object SVGImageElement])" ||
+ results[1] != "load([object SVGSVGElement])") {
+ document.getElementById("console").textContent = "Failed - got " + results.join(", ");
+ } else {
+ document.getElementById("console").textContent = "Passed";
+ }
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+
+ var img = document.createElementNS("http://www.w3.org/2000/svg", "image");
+ img.setAttribute("x", 20);
+ img.setAttribute("y", 20);
+ img.setAttribute("width", 100);
+ img.setAttribute("height", 100);
+ img.addEventListener("load", loaded, false);
+ img.addEventListener("SVGLoad", loaded, false);
+ img.addEventListener("error", loaded, false);
+ img.addEventListener("SVGError", loaded, false);
+ img.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "http://127.0.0.1:8000/svg/resources/delayCachedLoad.php");
+ document.documentElement.appendChild(img);
+ </script>
+</svg>
« 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