mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1256796 - "[ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_dom_nodes.js". r=lclark
This commit is contained in:
parent
023bcd1803
commit
bfdf9eb8b5
@ -102,7 +102,7 @@ devtools/client/shared/test/**
|
||||
devtools/client/shared/widgets/*.jsm
|
||||
devtools/client/sourceeditor/test/*.js
|
||||
devtools/client/webaudioeditor/**
|
||||
devtools/client/webconsole/**
|
||||
#devtools/client/webconsole/**
|
||||
!devtools/client/webconsole/panel.js
|
||||
!devtools/client/webconsole/jsterm.js
|
||||
!devtools/client/webconsole/console-commands.js
|
||||
|
@ -8,24 +8,26 @@
|
||||
"use strict";
|
||||
|
||||
function test() {
|
||||
const TEST_URI = 'data:text/html;charset=utf-8, \
|
||||
<html> \
|
||||
<head> \
|
||||
<title>Test for DOM nodes in variables view</title> \
|
||||
</head> \
|
||||
<body> \
|
||||
<div></div> \
|
||||
<div id="testID"></div> \
|
||||
<div class="single-class"></div> \
|
||||
<div class="multiple-classes another-class"></div> \
|
||||
<div class="class-and-id" id="class-and-id"></div> \
|
||||
<div class="multiple-classes-and-id another-class" \
|
||||
id="multiple-classes-and-id"></div> \
|
||||
<div class=" whitespace-start"></div> \
|
||||
<div class="whitespace-end "></div> \
|
||||
<div class="multiple spaces"></div> \
|
||||
</body> \
|
||||
</html>';
|
||||
const TEST_URI = `
|
||||
data:text/html;charset=utf-8,
|
||||
<html>
|
||||
<head>
|
||||
<title>Test for DOM nodes in variables view</title>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
<div id="testID"></div>
|
||||
<div class="single-class"></div>
|
||||
<div class="multiple-classes another-class"></div>
|
||||
<div class="class-and-id" id="class-and-id"></div>
|
||||
<div class="multiple-classes-and-id another-class"
|
||||
id="multiple-classes-and-id"></div>
|
||||
<div class=" whitespace-start"></div>
|
||||
<div class="whitespace-end "></div>
|
||||
<div class="multiple spaces"></div>
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
|
||||
Task.spawn(runner).then(finishTest);
|
||||
|
||||
@ -35,7 +37,7 @@ function test() {
|
||||
const jsterm = hud.jsterm;
|
||||
|
||||
let deferred = promise.defer();
|
||||
jsterm.once("variablesview-fetched", (_, aVar) => deferred.resolve(aVar));
|
||||
jsterm.once("variablesview-fetched", (_, val) => deferred.resolve(val));
|
||||
jsterm.execute("inspect(document.querySelectorAll('div'))");
|
||||
|
||||
let variableScope = yield deferred.promise;
|
||||
@ -47,7 +49,8 @@ function test() {
|
||||
{ name: "2", value: "<div.single-class>"},
|
||||
{ name: "3", value: "<div.multiple-classes.another-class>"},
|
||||
{ name: "4", value: "<div#class-and-id.class-and-id>"},
|
||||
{ name: "5", value: "<div#multiple-classes-and-id.multiple-classes-and-id.another-class>"},
|
||||
{ name: "5", value: "<div#multiple-classes-and-id." +
|
||||
"multiple-classes-and-id.another-class>"},
|
||||
{ name: "6", value: "<div.whitespace-start>"},
|
||||
{ name: "7", value: "<div.whitespace-end>"},
|
||||
{ name: "8", value: "<div.multiple.spaces>"},
|
||||
|
Loading…
Reference in New Issue
Block a user