Bug 1256800 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_highlighter.js. r=linclark

This commit is contained in:
Michael Kohler 2016-05-03 16:04:00 -04:00
Родитель 9a3a2c4c60
Коммит c24eef3455
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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]+/));