зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256800 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_highlighter.js. r=linclark
This commit is contained in:
Родитель
9a3a2c4c60
Коммит
c24eef3455
|
@ -33,19 +33,19 @@ function onQSAexecuted(msg) {
|
|||
let anchor = msg.querySelector("a");
|
||||
ok(anchor, "object link found");
|
||||
|
||||
gJSTerm.once("variablesview-fetched", onNodeListVviewFetched);
|
||||
gJSTerm.once("variablesview-fetched", onNodeListViewFetched);
|
||||
|
||||
executeSoon(() =>
|
||||
EventUtils.synthesizeMouse(anchor, 2, 2, {}, gWebConsole.iframeWindow)
|
||||
);
|
||||
}
|
||||
|
||||
function onNodeListVviewFetched(aEvent, aVar) {
|
||||
gVariablesView = aVar._variablesView;
|
||||
function onNodeListViewFetched(event, variable) {
|
||||
gVariablesView = variable._variablesView;
|
||||
ok(gVariablesView, "variables view object");
|
||||
|
||||
// Transform the vview into an array we can filter properties from
|
||||
let props = [...aVar].map(([id, prop]) => [id, prop]);
|
||||
let props = [...variable].map(([id, prop]) => [id, prop]);
|
||||
|
||||
// These properties are the DOM nodes ones
|
||||
props = props.filter(v => v[0].match(/[0-9]+/));
|
||||
|
|
Загрузка…
Ссылка в новой задаче