зеркало из https://github.com/mozilla/gecko-dev.git
Bug 749127 - Intermittent browser/devtools/debugger/test/browser_dbg_propertyview-06.js | The localScope doesn't contain all the created variable elements. - Got 6, expected 7; r=past
This commit is contained in:
Родитель
aade15efea
Коммит
531c5d7dc2
|
@ -25,6 +25,9 @@ function testSimpleCall() {
|
|||
|
||||
let globalScope = gDebugger.DebuggerView.Properties.globalScope;
|
||||
let localScope = gDebugger.DebuggerView.Properties.localScope;
|
||||
globalScope.empty();
|
||||
localScope.empty();
|
||||
|
||||
let windowVar = globalScope.addVar("window");
|
||||
let documentVar = globalScope.addVar("document");
|
||||
let localVar0 = localScope.addVar("localVariable");
|
||||
|
@ -79,10 +82,18 @@ function testSimpleCall() {
|
|||
ok(localVar5, "The localVar5 hasn't been created correctly.");
|
||||
|
||||
|
||||
for each (let elt in globalScope.querySelector(".details").childNodes) {
|
||||
info("globalScope :: " + {
|
||||
id: elt.id, className: elt.className }.toSource());
|
||||
}
|
||||
is(globalScope.querySelector(".details").childNodes.length, 2,
|
||||
"The globalScope doesn't contain all the created variable elements.");
|
||||
|
||||
is(localScope.querySelector(".details").childNodes.length, 7,
|
||||
for each (let elt in localScope.querySelector(".details").childNodes) {
|
||||
info("localScope :: " + {
|
||||
id: elt.id, className: elt.className }.toSource());
|
||||
}
|
||||
is(localScope.querySelector(".details").childNodes.length, 6,
|
||||
"The localScope doesn't contain all the created variable elements.");
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче