mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
c670db600f
commit
de2e2e0c3c
@ -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) {
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user