Bug 952767 - Yield waiting for the FETCHED_VARIABLES event and fix a few typos in browser_dbg_variables-view-override-01.js, r=past

This commit is contained in:
Victor Porof 2014-01-04 00:04:23 +02:00
parent c795ae9e68
commit baf881252f

View File

@ -50,11 +50,11 @@ function test() {
is(firstScope._store.size, 3,
"The first scope should have all the variables available.");
is(secondScope._store.size, 0,
"The second scope shoild have no variables available yet.");
"The second scope should have no variables available yet.");
is(thirdScope._store.size, 0,
"The third scope shoild have no variables available yet.");
"The third scope should have no variables available yet.");
is(globalScope._store.size, 0,
"The global scope shoild have no variables available yet.");
"The global scope should have no variables available yet.");
// Test getOwnerScopeForVariableOrProperty with simple variables.
@ -102,6 +102,7 @@ function test() {
secondScope.expand();
thirdScope.expand();
globalScope.expand();
yield fetched;
let someVar2 = secondScope.get("a");
let someOwner2 = variables.getOwnerScopeForVariableOrProperty(someVar2);