summaryrefslogtreecommitdiffstats
path: root/layout/reftests/view-source/view-source-image.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/view-source/view-source-image.html')
-rw-r--r--layout/reftests/view-source/view-source-image.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layout/reftests/view-source/view-source-image.html b/layout/reftests/view-source/view-source-image.html
new file mode 100644
index 0000000000..d9b29c98e3
--- /dev/null
+++ b/layout/reftests/view-source/view-source-image.html
@@ -0,0 +1,8 @@
+<script>
+ var url = document.location.href;
+ var imageUrl = url.replace(/[/][^/]*$/, "/blue-circle-16x16.png");
+ var viewSourceImageUrl = "view-source:" + imageUrl;
+ var html = "<iframe src='#url#'></iframe>".replace(/#url#/, viewSourceImageUrl);
+ document.write(html);
+</script>
+