Bug 774011 - Intermittent browser_dbg_createRemote.js | Should be paused after an interrupt request. - Got false, expected true | Should have one frame in the stack. - Got 0, expected 1, r=past

This commit is contained in:
Victor Porof 2012-11-02 16:39:12 +02:00
parent c670db600f
commit de2e2e0c3c
2 changed files with 18 additions and 4 deletions

View File

@ -83,10 +83,17 @@ function test() {
});
let iframe = gTab.linkedBrowser.contentWindow.wrappedJSObject.frames[0];
is(iframe.document.title, "Browser Debugger Test Tab", "Found the iframe");
iframe.runDebuggerStatement();
function handler() {
if (iframe.document.readyState != "complete") {
return;
}
iframe.window.removeEventListener("load", handler, false);
executeSoon(iframe.runDebuggerStatement);
};
iframe.window.addEventListener("load", handler, false);
handler();
},
function beforeTabAdded() {
if (!DebuggerServer.initialized) {

View File

@ -47,10 +47,17 @@ function test() {
});
let iframe = gTab.linkedBrowser.contentWindow.wrappedJSObject.frames[0];
is(iframe.document.title, "Browser Debugger Test Tab", "Found the iframe");
iframe.runDebuggerStatement();
function handler() {
if (iframe.document.readyState != "complete") {
return;
}
iframe.window.removeEventListener("load", handler, false);
executeSoon(iframe.runDebuggerStatement);
};
iframe.window.addEventListener("load", handler, false);
handler();
});
}