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

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

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

@ -10,7 +10,7 @@
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
add_task(function*() {
add_task(function* () {
yield loadTab(TEST_URI);
let hud = yield openConsole();
@ -37,12 +37,13 @@ add_task(function*() {
yield waitForBlurredInput(inputNode);
info("Setting a text selection and making sure a click does not re-focus")
info("Setting a text selection and making sure a click does not re-focus");
let selection = hud.iframeWindow.getSelection();
selection.selectAllChildren(outputItem);
EventUtils.sendMouseEvent({type: "click"}, hud.outputNode);
ok(!inputNode.getAttribute("focused"), "input node is not focused after drag");
ok(!inputNode.getAttribute("focused"),
"input node is not focused after drag");
});
function waitForBlurredInput(inputNode) {