gecko/layout/reftests/view-source/view-source-image.html
L. David Baron f6c21bbe4c Bug 989688 patch 5 - Run the reftests in layout/reftests/view-source/. r=roc
This should have been added in
https://hg.mozilla.org/mozilla-central/rev/745c0c2aa1fe (bug 464339).

Furthermore, the image being missing was the result of using
checkin-needed on a non-GIT-style diff "containing" an image.

--HG--
rename : layout/reftests/view-source/reftests.list => layout/reftests/view-source/reftest.list
2014-04-01 11:53:31 -07:00

9 lines
286 B
HTML

<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>