зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256781 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_click_focus.js. r=linclark
This commit is contained in:
Родитель
46a73ebfe0
Коммит
cd7e438938
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче