Bug 1384427 - Update more tests within layout/ to comply with new data: URI inheritance model. r=smaug

This commit is contained in:
Christoph Kerschbaumer 2017-07-26 11:42:31 +02:00
parent 98f251e3f3
commit 3781656f2d
8 changed files with 11 additions and 11 deletions

View File

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558663
<p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=558663">Mozilla Bug 558663</a></p> <p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=558663">Mozilla Bug 558663</a></p>
<!-- 20x20 of red --> <!-- 20x20 of red -->
<iframe id="iframe" src="data:text/html,<img id='image' border='0' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAG0lEQVR42mP8z0A%2BYKJA76jmUc2jmkc1U0EzACKcASfOgGoMAAAAAElFTkSuQmCC'>"></iframe> <iframe id="iframe" srcdoc="<img id='image' border='0' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAG0lEQVR42mP8z0A%2BYKJA76jmUc2jmkc1U0EzACKcASfOgGoMAAAAAElFTkSuQmCC'>"></iframe>
<pre id="test"> <pre id="test">
<script type="application/javascript"> <script type="application/javascript">

View File

@ -0,0 +1 @@
<body onload='window.opener.loaded()'><div style='height:200px; width:100px;'>

View File

@ -0,0 +1 @@
<script>window.onload = function() { opener.postMessage('goback', '*'); }</script>

View File

@ -1,6 +1,7 @@
[DEFAULT] [DEFAULT]
support-files = support-files =
Ahem.ttf Ahem.ttf
file_bug465448.html
file_bug842853.html file_bug842853.html
file_bug842853.sjs file_bug842853.sjs
selection-utils.js selection-utils.js
@ -62,7 +63,9 @@ support-files =
[test_bug603550.html] [test_bug603550.html]
skip-if = toolkit == 'android' # Doesn't work on Android skip-if = toolkit == 'android' # Doesn't work on Android
[test_bug607529.html] [test_bug607529.html]
support-files = file_bug607529.html support-files =
file_bug607529.html
file_bug607529-1.html
[test_bug629838.html] [test_bug629838.html]
skip-if = toolkit == 'android' # Requires plugin support skip-if = toolkit == 'android' # Requires plugin support
[test_bug644768.html] [test_bug644768.html]

View File

@ -13,7 +13,7 @@
<script><![CDATA[ <script><![CDATA[
SimpleTest.waitForExplicitFinish(); SimpleTest.waitForExplicitFinish();
var loadedCalled = false; var loadedCalled = false;
var win = window.open("data:text/html,<body onload='window.opener.loaded()'><div style='height:200px; width:100px;'>", "_blank", "width=600,height=600"); var win = window.open("file_bug465448.html", "_blank", "width=600,height=600");
function loaded() { function loaded() {
if (!loadedCalled) { if (!loadedCalled) {

View File

@ -11,8 +11,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=469170
<body onload="runTest();"> <body onload="runTest();">
<p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=469170">Mozilla Bug 469170</a></p> <p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=469170">Mozilla Bug 469170</a></p>
<iframe id="source" width="50" height="50" <iframe id="source" width="50" height="50" srcdoc="<html></html>"></iframe>
src="data:text/html,%3Chtml%3E%3C%2Fhtml%3E"></iframe>
<pre id="test"> <pre id="test">
<script type="application/javascript"> <script type="application/javascript">

View File

@ -35,12 +35,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=518777
<body> <body>
<p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=518777">Mozilla Bug 518777</a></p> <p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=518777">Mozilla Bug 518777</a></p>
<!--
iframe source is
<html><body onload='window.scrollTo(0,99999999); document.documentElement.offsetWidth; window.parent.dotest();' style='background: rgb(0,0,255); width: 100px; height: 50100px;'></body></html>
-->
<iframe id="source" width="50" height="50" <iframe id="source" width="50" height="50"
src="data:text/html,%3Chtml%3E%3Cbody%20onload%3D%27window.scrollTo%280%2C99999999%29%3B%20document.documentElement.offsetWidth%3B%20window.parent.dotest%28%29%3B%27%20style%3D%27background%3A%20rgb%280%2C0%2C255%29%3B%20width%3A%20100px%3B%20height%3A%2050100px%3B%27%3E%3C%2Fbody%3E%3C%2Fhtml%3E"></iframe> srcdoc="<html><body onload='window.scrollTo(0,99999999); document.documentElement.offsetWidth; window.parent.dotest();' style='background: rgb(0,0,255); width: 100px; height: 50100px;'></body></html>"></iframe>
<pre id="test"> <pre id="test">
</pre> </pre>

View File

@ -31,7 +31,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=607529
if (e.data == "loaded" && !doneOneLoad) { if (e.data == "loaded" && !doneOneLoad) {
doneOneLoad = true; doneOneLoad = true;
w.location = "data:text/html,<script>window.onload = function() { opener.postMessage('goback', '*'); }</" + "script>"; w.location = "file_bug607529-1.html";
} }
else if (e.data == "goback") { else if (e.data == "goback") {
w.history.back(); w.history.back();