Bug 1283579 - Use data schema rather than outside document for test of bug 682592 to make it faster. r=jfkthame

MozReview-Commit-ID: 6ccLpZF1qr8

--HG--
extra : rebase_source : e275f555152e38bf24ca833e5a876ade5776ed1c
This commit is contained in:
Xidorn Quan 2016-07-04 13:16:08 +10:00
parent 326a823176
commit 047d82990f
4 changed files with 6 additions and 26 deletions

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title></title>
</head>
<body>
<p id="content"></p>
</body>
</html>

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title></title>
</head>
<body>
<p id="content"></p>
</body>
</html>

View File

@ -46,8 +46,6 @@ support-files =
bug578096LoadChromeScript.js
bug638112-response.txt
bug638112.sjs
bug682592-subframe-ref.html
bug682592-subframe.html
bug696301-script-1.js
bug696301-script-1.js^headers^
bug696301-script-2.js

View File

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=682592
<body>
<p id="display"></p>
<div id="content">
<iframe id="iframe-ref" src="bug682592-subframe-ref.html"></iframe>
<iframe id="iframe-ref"></iframe>
<iframe id="iframe-test"></iframe>
</div>
<pre id="test">
@ -39,11 +39,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=682592
*/
SimpleTest.waitForExplicitFinish();
SimpleTest.requestLongerTimeout(2);
SimpleTest.requestLongerTimeout(3);
if (navigator.platform.startsWith("Linux arm")) { /* bugs 982875, 999429 */
SimpleTest.expectAssertions(0, 4);
}
var page = `data:text/html;charset=UTF-8,<!DOCTYPE html>
<html><body><p id="content"></p></body></html>`;
var refFrame = document.getElementById("iframe-ref")
var testFrame = document.getElementById("iframe-test");
@ -60,8 +62,9 @@ refFrame.addEventListener("load", function() {
SimpleTest.finish();
}
}, false);
testFrame.src = "bug682592-subframe.html"
testFrame.src = page;
}, false);
refFrame.src = page;
var rtl = "עִבְרִית";
var non8bit = "ʃ";