mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 817425 - many id's in devtools debugger listed as undefined, r=past
This commit is contained in:
parent
4c0118c03c
commit
2ed4f10038
@ -27,9 +27,30 @@ function testSimpleCall() {
|
||||
let testVar = testScope.addVar("something");
|
||||
let duplVar = testScope.addVar("something");
|
||||
|
||||
info("Scope id: " + testScope.target.id);
|
||||
info("Scope name: " + testScope.target.name);
|
||||
info("Variable id: " + testVar.target.id);
|
||||
info("Variable name: " + testVar.target.name);
|
||||
|
||||
ok(testScope,
|
||||
"Should have created a scope.");
|
||||
ok(testVar,
|
||||
"Should have created a variable.");
|
||||
|
||||
ok(testScope.id.contains("test-scope"),
|
||||
"Should have the correct scope id.");
|
||||
ok(testScope.target.id.contains("test-scope"),
|
||||
"Should have the correct scope id on the element.");
|
||||
is(testScope.name, "test-scope",
|
||||
"Should have the correct scope name.");
|
||||
|
||||
ok(testVar.id.contains("something"),
|
||||
"Should have the correct variable id.");
|
||||
ok(testVar.target.id.contains("something"),
|
||||
"Should have the correct variable id on the element.");
|
||||
is(testVar.name, "something",
|
||||
"Should have the correct variable name.");
|
||||
|
||||
is(duplVar, null,
|
||||
"Shouldn't be able to duplicate variables in the same scope.");
|
||||
|
||||
|
@ -713,7 +713,7 @@ Scope.prototype = {
|
||||
let document = this.document;
|
||||
|
||||
let element = this._target = document.createElement("vbox");
|
||||
element.id = this._id;
|
||||
element.id = this._idString;
|
||||
element.className = aClassName;
|
||||
|
||||
let arrow = this._arrow = document.createElement("hbox");
|
||||
|
Loading…
Reference in New Issue
Block a user