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

Unified Diff: LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe.html

Issue 329943003: Fix resolving protocol-agnostic <svg:image> URLs in about:blank iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe.html
diff --git a/LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe.html b/LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..2560d5f332ce453ec6b52236dc238fb0f6b20c83
--- /dev/null
+++ b/LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+iframe {
+ border: none;
+}
+body, iframe {
+ margin: 0;
+ padding: 0;
+}
+</style>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function finishTest() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+</script>
+<iframe></iframe>
+<script>
+var iframe = document.querySelector('iframe');
+iframe.contentWindow.finishTest = finishTest;
+iframe.contentDocument.body.innerHTML =
+'<style>body { margin: 0; padding: 0; }</style>'+
+'<svg width="100" height="100">'+
+'<image width="100" height="100" xlink:href="//localhost:8000/resources/square100.png" onload="finishTest()"></image>'+
+'</svg>';
+</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/svg/image-base-within-aboutblank-iframe-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698