зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230193 - Finish enabling ESLint rule no-undef for devtools/. r=jdescottes
MozReview-Commit-ID: EVFivqFNy8a --HG-- extra : rebase_source : b9591567dfdbe8f9d7d959c4ee2d0e5c7f43ea09
This commit is contained in:
Родитель
0959b41dd0
Коммит
5665b1e1bf
|
@ -13,15 +13,6 @@ module.exports = {
|
||||||
"require": true,
|
"require": true,
|
||||||
},
|
},
|
||||||
"overrides": [{
|
"overrides": [{
|
||||||
// XXX Bug 1230193. We're still working on enabling no-undef for these test
|
|
||||||
// directories.
|
|
||||||
"files": [
|
|
||||||
"server/tests/mochitest/**",
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"no-undef": "off",
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
"files": [
|
"files": [
|
||||||
"client/framework/**",
|
"client/framework/**",
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// Extend from the common devtools mochitest eslintrc config.
|
// Extend from the common devtools mochitest eslintrc config.
|
||||||
"extends": "../../../.eslintrc.xpcshell.js"
|
"extends": "../../../.eslintrc.mochitests.js"
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/* exported heinrichFun */
|
/* exported heinrichFun */
|
||||||
|
/* global franz */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function heinrichFun() {
|
function heinrichFun() {
|
||||||
|
|
|
@ -14,6 +14,9 @@ Bug 966991 - Test DebuggerServer.connectToFrame
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
// Part of this is a frame script.
|
||||||
|
/* eslint-env mozilla/frame-script */
|
||||||
|
|
||||||
const { require } = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});
|
const { require } = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});
|
||||||
const { DebuggerClient } = require("devtools/shared/client/debugger-client");
|
const { DebuggerClient } = require("devtools/shared/client/debugger-client");
|
||||||
const { DebuggerServer } = require("devtools/server/main");
|
const { DebuggerServer } = require("devtools/server/main");
|
||||||
|
|
|
@ -31,6 +31,7 @@ Test that css-logic handles media-queries correctly
|
||||||
const {require} = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});
|
const {require} = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});
|
||||||
const Services = require("Services");
|
const Services = require("Services");
|
||||||
const {CssLogic} = require("devtools/server/actors/inspector/css-logic");
|
const {CssLogic} = require("devtools/server/actors/inspector/css-logic");
|
||||||
|
const InspectorUtils = require("InspectorUtils");
|
||||||
|
|
||||||
SimpleTest.waitForExplicitFinish();
|
SimpleTest.waitForExplicitFinish();
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@ Bug 1060093 - Test DebuggerServer.getProcess
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
// Part of this is a frame script.
|
||||||
|
/* eslint-env mozilla/frame-script */
|
||||||
|
|
||||||
const {require} = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});
|
const {require} = ChromeUtils.import("resource://devtools/shared/Loader.jsm", {});
|
||||||
const {DebuggerClient} = require("devtools/shared/client/debugger-client");
|
const {DebuggerClient} = require("devtools/shared/client/debugger-client");
|
||||||
const {DebuggerServer} = require("devtools/server/main");
|
const {DebuggerServer} = require("devtools/server/main");
|
||||||
|
|
|
@ -20,6 +20,8 @@ window.onload = function() {
|
||||||
runNextTest();
|
runNextTest();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const InspectorUtils = require("InspectorUtils");
|
||||||
|
|
||||||
let gInspectee = null;
|
let gInspectee = null;
|
||||||
let gWalker = null;
|
let gWalker = null;
|
||||||
let gCleanupConnection = null;
|
let gCleanupConnection = null;
|
||||||
|
|
|
@ -22,8 +22,10 @@ async function test_connect_addon(oopMode) {
|
||||||
const extension = ExtensionTestUtils.loadExtension({
|
const extension = ExtensionTestUtils.loadExtension({
|
||||||
useAddonManager: "temporary",
|
useAddonManager: "temporary",
|
||||||
background: function() {
|
background: function() {
|
||||||
|
/* eslint-disable no-undef */
|
||||||
browser.test.log("background script executed");
|
browser.test.log("background script executed");
|
||||||
browser.test.sendMessage("background page ready");
|
browser.test.sendMessage("background page ready");
|
||||||
|
/* eslint-enable no-undef */
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
await extension.startup();
|
await extension.startup();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче