Bug 807222 part 4. Fix timeout in debugger propertyview test due to larger number of properties on the global. r=past

This commit is contained in:
Victor Porof 2012-11-03 13:57:33 +02:00
parent cac519438d
commit 2e2f21d346
2 changed files with 5 additions and 18 deletions

View File

@ -13,6 +13,8 @@ var gTab = null;
var gDebugger = null; var gDebugger = null;
var gDebuggee = null; var gDebuggee = null;
requestLongerTimeout(2);
function test() function test()
{ {
debug_tab_pane(TAB_URL, function(aTab, aDebuggee, aPane) { debug_tab_pane(TAB_URL, function(aTab, aDebuggee, aPane) {
@ -33,6 +35,7 @@ function addBreakpoint()
}, function() { }, function() {
// Wait for the resume... // Wait for the resume...
gDebugger.gClient.addOneTimeListener("resumed", function() { gDebugger.gClient.addOneTimeListener("resumed", function() {
gDebugger.DebuggerView.Variables.nonEnumVisible = false;
testVariablesExpand(); testVariablesExpand();
}); });
}); });
@ -194,15 +197,6 @@ function testVariablesExpand()
is(locationItem.target.querySelector(".details").hasAttribute("open"), true, is(locationItem.target.querySelector(".details").hasAttribute("open"), true,
"The locationItem enumerables should still be expanded (1)"); "The locationItem enumerables should still be expanded (1)");
is(thisItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The thisItem non-enumerables should still be expanded (1)");
is(windowItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The windowItem non-enumerables should still be expanded (1)");
is(documentItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The documentItem non-enumerables should still be expanded (1)");
is(locationItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The locationItem non-enumerables should still be expanded (1)");
is(thisItem.expanded, true, is(thisItem.expanded, true,
"The local scope 'this' should still be expanded (1)"); "The local scope 'this' should still be expanded (1)");
is(windowItem.expanded, true, is(windowItem.expanded, true,
@ -275,15 +269,6 @@ function testVariablesExpand()
is(locationItem.target.querySelector(".details").hasAttribute("open"), true, is(locationItem.target.querySelector(".details").hasAttribute("open"), true,
"The locationItem enumerables should still be expanded (2)"); "The locationItem enumerables should still be expanded (2)");
is(thisItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The thisItem non-enumerables should still be expanded (2)");
is(windowItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The windowItem non-enumerables should still be expanded (2)");
is(documentItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The documentItem non-enumerables should still be expanded (2)");
is(locationItem.target.querySelector(".details.nonenum").hasAttribute("open"), true,
"The locationItem non-enumerables should still be expanded (2)");
is(thisItem.expanded, true, is(thisItem.expanded, true,
"The local scope 'this' should still be expanded (2)"); "The local scope 'this' should still be expanded (2)");
is(windowItem.expanded, true, is(windowItem.expanded, true,

View File

@ -13,6 +13,8 @@ let gDebuggee = null;
let gDebugger = null; let gDebugger = null;
let gView = null; let gView = null;
requestLongerTimeout(2);
function test() function test()
{ {
let step = 0; let step = 0;