mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
On the theory that changeset 31fbc861bcb9 did not intend to back out the piece of changeset eb49e81b9f4d that touched this test, I'm going to put it back, and hope that it might fix some random orange (bug 572954).
This commit is contained in:
parent
e48dbb1afd
commit
22d6de21e3
@ -59,14 +59,20 @@ function test() {
|
||||
const kBaseUrl =
|
||||
"http://mochi.test:8888/browser/toolkit/content/tests/browser/data/";
|
||||
|
||||
function pageShown(event)
|
||||
{
|
||||
if (event.target.location != "about:blank")
|
||||
testRunner.continueTest();
|
||||
}
|
||||
|
||||
function FramePostData_TestGenerator() {
|
||||
// Display the outer page, and wait for it to be loaded. Loading the URI
|
||||
// doesn't generally raise any exception, but if an error page is
|
||||
// displayed, an exception will occur later during the test.
|
||||
gBrowser.addEventListener("pageshow", testRunner.continueTest, false);
|
||||
gBrowser.addEventListener("pageshow", pageShown, false);
|
||||
gBrowser.loadURI(kBaseUrl + "post_form_outer.sjs");
|
||||
yield;
|
||||
gBrowser.removeEventListener("pageshow", testRunner.continueTest, false);
|
||||
gBrowser.removeEventListener("pageshow", pageShown, false);
|
||||
|
||||
try {
|
||||
// Submit the form in the outer page, then wait for both the outer
|
||||
|
Loading…
Reference in New Issue
Block a user