Bug 990202 - Move the test page to a new window to prevent it from navigating the test runner frame back; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2014-04-02 08:53:04 -04:00
parent e31688cbd8
commit 76f5142852
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html>
<body>
<iframe id="iframe" src="historyframes.html"></iframe>
<script type="application/javascript">
var SimpleTest = window.opener.SimpleTest;
var is = window.opener.is;
function done() {
window.opener.done();
}
</script>
</body>
</html>

View File

@ -96,7 +96,8 @@ skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop spec
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage
[test_bug797909.html]
[test_framedhistoryframes.html]
skip-if = toolkit == 'android' #bug 784321
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || toolkit == 'android' #Bug 931116, b2g desktop specific, initial triage, and also bug 784321
support-files = file_framedhistoryframes.html
[test_pushState_after_document_open.html]
[test_windowedhistoryframes.html]
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage

View File

@ -12,7 +12,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=602256
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=602256">Mozilla Bug 602256</a>
<p id="display"></p>
<div id="content">
<iframe id="iframe" src="historyframes.html"></iframe>
</div>
<pre id="test">
<script type="application/javascript">
@ -20,8 +19,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=602256
/** Test for Bug 602256 **/
SimpleTest.waitForExplicitFinish();
var win = window.open("file_framedhistoryframes.html");
function done() {
win.close();
SimpleTest.finish();
}