Bug 725249 - intermittent browser/devtools/debugger/test/browser_dbg_propertyview-08.js | Test timed out; r=rcampbell

This commit is contained in:
Victor Porof 2012-04-03 14:23:18 +03:00
parent 838fdd93a5
commit 3a36c5ee48
2 changed files with 26 additions and 3 deletions

View File

@ -25,15 +25,27 @@ function test()
function testFrameParameters()
{
dump("Started testFrameParameters!\n");
gDebugger.addEventListener("Debugger:FetchedParameters", function test() {
dump("Entered Debugger:FetchedParameters!\n");
gDebugger.removeEventListener("Debugger:FetchedParameters", test, false);
Services.tm.currentThread.dispatch({ run: function() {
dump("After currentThread.dispatch!\n");
var frames = gDebugger.DebuggerView.Stackframes._frames,
childNodes = frames.childNodes,
localScope = gDebugger.DebuggerView.Properties.localScope,
localNodes = localScope.querySelector(".details").childNodes;
dump("Got our variables:\n");
dump("frames - " + frames.constructor + "\n");
dump("childNodes - " + childNodes.constructor + "\n");
dump("localScope - " + localScope.constructor + "\n");
dump("localNodes - " + localNodes.constructor + "\n");
is(gDebugger.StackFrames.activeThread.state, "paused",
"Should only be getting stack frames while paused.");

View File

@ -25,14 +25,25 @@ function test()
function testFrameParameters()
{
dump("Started testFrameParameters!\n");
gDebugger.addEventListener("Debugger:FetchedParameters", function test() {
dump("Entered Debugger:FetchedParameters!\n");
gDebugger.removeEventListener("Debugger:FetchedParameters", test, false);
Services.tm.currentThread.dispatch({ run: function() {
dump("After currentThread.dispatch!\n");
var frames = gDebugger.DebuggerView.Stackframes._frames,
localScope = gDebugger.DebuggerView.Properties.localScope,
localNodes = localScope.querySelector(".details").childNodes;
dump("Got our variables:\n");
dump("frames - " + frames.constructor + "\n");
dump("localScope - " + localScope.constructor + "\n");
dump("localNodes - " + localNodes.constructor + "\n");
is(gDebugger.StackFrames.activeThread.state, "paused",
"Should only be getting stack frames while paused.");
@ -87,9 +98,9 @@ function testFrameParameters()
}}, 0);
}, false);
EventUtils.synthesizeMouseAtCenter(content.document.querySelector("button"),
{},
content.window);
EventUtils.sendMouseEvent({ type: "click" },
content.document.querySelector("button"),
content.window);
}
function resumeAndFinish() {