зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1825739 - Replace generic ESLint disable statements with specific and prettier ones in devtools. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D174225
This commit is contained in:
Родитель
cc3ea58df3
Коммит
82e49f1086
|
@ -87,6 +87,12 @@ devtools/client/webconsole/test/browser/code_bundle_nosource.js
|
||||||
devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
|
devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
|
||||||
devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
|
devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
|
||||||
devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
|
devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
|
||||||
|
devtools/client/inspector/markup/test/shadowdom_open_debugger.min.js
|
||||||
|
devtools/client/webconsole/test/browser/test-click-function-to-source*.js
|
||||||
|
devtools/client/webconsole/test/browser/test-external-script-errors.js
|
||||||
|
devtools/client/webconsole/test/browser/test-message-categories-canvas-css.js
|
||||||
|
devtools/client/webconsole/test/browser/test-message-categories-empty-getelementbyid.js
|
||||||
|
devtools/client/webconsole/test/browser/test-sourcemap*.js
|
||||||
devtools/server/tests/xpcshell/setBreakpoint*
|
devtools/server/tests/xpcshell/setBreakpoint*
|
||||||
devtools/server/tests/xpcshell/sourcemapped.js
|
devtools/server/tests/xpcshell/sourcemapped.js
|
||||||
|
|
||||||
|
|
|
@ -42,18 +42,17 @@ dom/base/test/file_bug687859-charset.js
|
||||||
dom/base/test/file_bug687859-inherit.js
|
dom/base/test/file_bug687859-inherit.js
|
||||||
|
|
||||||
# Ignore devtools debugger files
|
# Ignore devtools debugger files
|
||||||
# Keep in sync with devtools/client/debugger/.prettierignore
|
devtools/client/debugger/src/test/examples/**
|
||||||
devtools/client/debugger/src/workers/parser/tests/fixtures/functionNames.js
|
devtools/client/debugger/src/test/integration/**
|
||||||
devtools/client/debugger/src/workers/parser/tests/fixtures/scopes/*.js
|
devtools/client/debugger/src/test/unit-sources/**
|
||||||
devtools/client/debugger/src/workers/parser/tests/fixtures/pause/*.js
|
devtools/client/debugger/src/**/fixtures/**
|
||||||
devtools/client/debugger/src/test/mochitest/examples/babel/polyfill-bundle.js
|
devtools/client/debugger/src/test/mochitest/**
|
||||||
devtools/client/debugger/src/test/mochitest/examples/babel/fixtures/*/input.js
|
|
||||||
devtools/client/debugger/src/test/mochitest/examples/babel/fixtures/*/output.js
|
|
||||||
devtools/client/debugger/src/test/mochitest/examples/babel/fixtures/*/output.js.map
|
|
||||||
devtools/client/debugger/src/test/mochitest/examples/ember/quickstart
|
|
||||||
|
|
||||||
# These are source mapped and the locations are asserted in the test case.
|
# These are source mapped and the locations are asserted in the test case.
|
||||||
devtools/client/webconsole/test/browser/test-mangled-function.*
|
devtools/client/webconsole/test/browser/test-mangled-function.*
|
||||||
|
|
||||||
|
# This file is based on another and we want to keep the syntax the same.
|
||||||
|
devtools/shared/plural-form.js
|
||||||
|
|
||||||
# Ignore backgroundtasks preferences files.
|
# Ignore backgroundtasks preferences files.
|
||||||
toolkit/components/backgroundtasks/defaults
|
toolkit/components/backgroundtasks/defaults
|
||||||
|
|
|
@ -45,8 +45,7 @@ export function formatCallStackFrames(
|
||||||
return annotateFrames(formattedFrames);
|
return annotateFrames(formattedFrames);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line
|
export const getCallStackFrames = createSelector(
|
||||||
export const getCallStackFrames = (createSelector)(
|
|
||||||
getCurrentThreadFrames,
|
getCurrentThreadFrames,
|
||||||
getSelectedSource,
|
getSelectedSource,
|
||||||
getBlackBoxRanges,
|
getBlackBoxRanges,
|
||||||
|
|
|
@ -46,9 +46,13 @@ add_task(async function() {
|
||||||
</body>
|
</body>
|
||||||
</html>`,
|
</html>`,
|
||||||
"extension.js": async () => {
|
"extension.js": async () => {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line no-undef
|
||||||
await browser.devtools.panels.create("extension", "fake-icon.png", "empty.html");
|
await browser.devtools.panels.create(
|
||||||
// eslint-disable-next-line
|
"extension",
|
||||||
|
"fake-icon.png",
|
||||||
|
"empty.html"
|
||||||
|
);
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
browser.test.sendMessage("devtools-page-ready");
|
browser.test.sendMessage("devtools-page-ready");
|
||||||
},
|
},
|
||||||
"empty.html": "",
|
"empty.html": "",
|
||||||
|
|
|
@ -6,9 +6,8 @@
|
||||||
// Test that image preview tooltip shows updated content when the image src
|
// Test that image preview tooltip shows updated content when the image src
|
||||||
// changes.
|
// changes.
|
||||||
|
|
||||||
/*eslint-disable */
|
// prettier-ignore
|
||||||
const INITIAL_SRC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADI5JREFUeNrsWwuQFNUVPf1m5z87szv7HWSWj8CigBFMEFZKiQsB1PgJwUAZg1HBpIQsKmokEhNjWUnFVPnDWBT+KolJYbRMoqUVq0yCClpqiX8sCchPWFwVlt2db7+X93pez7zu6Vn2NxsVWh8987p7pu+9555z7+tZjTGGY3kjOMa34w447oBjfKsY7i/UNM3Y8eFSAkD50Plgw03K5P9gvGv7U5ieeR3PszeREiPNX3/0DL4hjslzhm8THh+OITfXk3dhiv4GDtGPVzCaeJmPLYzuu5qJuWfuw2QTlcN1X9pwQU7LhdZ/ZAseD45cOh9hHvDkc/yAF/DNhdb5Mrr3PvBMaAYW8fMSIi2G497IMEK/YutGtAYr6+ej+nxu/NN8Ks3N7AR6HgcLz0Eg1Ljg1UcxZzi5qewIkMYLRweTr2Kzp+nmyXAd5pS3XQDd+N/4h4zgu9FI7brlXf90nMEnuwQxlvv+hosE3TuexmWeysmT4W+WxkMaLzf9Y8ATgjcUn7T9H1gqrpFq8eV1gMn6t16NhngjfoX6q4DUP032Rd4LJgpSLwJ1yzFqBG69eRkah0MVyo0Acfe+yy9AG4nM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k0PM4ssEnvuz5+G26Ij4yDpz6z9fV8bkyIkqBFkhej0Ib+ZQ34XJK9AfozaiimqIoX3Jp3tiISrcfYpuN2+iFph/02P36PNC9fVcCnp6H9jYouKyfaWufz5Tp9tVxcUniw7IohZv4dZz81/ns67z3AYPrc2n0+Ix2q8k0PWjgBy88XaibnfK9A+5LdDY2Ivhy36fbT8Zv3Lb1U1qLqUxorXEEXIs0mjjrtxoTZWtdvigNs2sgPiujTv6DIZLld6b/V5742JZV3fUsUVFy5gdsNtKWFzUCEVbNepD1MkSMVbsb6SZm7jI3/zODtQKgUMsOw8wDZ63t5xcV1TnaEAxoc6wrqY+Fj+N4DsqOnhOIdicrQSm1MPYCPlIqHn5bbHg8/bj2D3QfZnCX3mpAICDZV8jH5kpbZqTD0W+DxaA74CWzLN2nd14OlL72J38Lf7+TjC7dadZFDoZJQPrtaIKL/G0L6ktptPZVJ8fMqHYPZOKYPMyQGadIJfDvdXwAFiZOTvDBPydf5vk4rWA+RfdhBlaF/yDDBRoMu9pfnSjv/p7DG+HXfAcQcc49v/BBgAcFAO4DmB2GQAAAAASUVORK5CYII=";
|
||||||
/* eslint-enable */
|
|
||||||
|
|
||||||
const UPDATED_SRC = URL_ROOT + "doc_markup_tooltip.png";
|
const UPDATED_SRC = URL_ROOT + "doc_markup_tooltip.png";
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ add_task(async function() {
|
||||||
const dbg = createDebuggerContext(toolbox);
|
const dbg = createDebuggerContext(toolbox);
|
||||||
|
|
||||||
await waitForSelectedSource(dbg, "shadowdom_open_debugger.min.js");
|
await waitForSelectedSource(dbg, "shadowdom_open_debugger.min.js");
|
||||||
await waitForSelectedLocation(dbg, 2);
|
await waitForSelectedLocation(dbg, 1);
|
||||||
|
|
||||||
info("Pretty-print source.");
|
info("Pretty-print source.");
|
||||||
clickElement(dbg, "prettyPrintButton");
|
clickElement(dbg, "prettyPrintButton");
|
||||||
|
@ -49,5 +49,5 @@ add_task(async function() {
|
||||||
customBadge.click();
|
customBadge.click();
|
||||||
|
|
||||||
await waitForSelectedSource(dbg, "shadowdom_open_debugger.min.js:formatted");
|
await waitForSelectedSource(dbg, "shadowdom_open_debugger.min.js:formatted");
|
||||||
await waitForSelectedLocation(dbg, 4);
|
await waitForSelectedLocation(dbg, 3);
|
||||||
});
|
});
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* USAGE:
|
* USAGE:
|
||||||
* diff(text1, text2);
|
* diff(text1, text2);
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
/* eslint-disable */
|
|
||||||
"use strict";customElements.define("test-component",class extends HTMLElement{constructor(){super();let shadowRoot=this.attachShadow({mode:"open"});shadowRoot.innerHTML="<slot>some default content</slot>"}connectedCallback(){}disconnectedCallback(){}});
|
"use strict";customElements.define("test-component",class extends HTMLElement{constructor(){super();let shadowRoot=this.attachShadow({mode:"open"});shadowRoot.innerHTML="<slot>some default content</slot>"}connectedCallback(){}disconnectedCallback(){}});
|
||||||
|
|
|
@ -81,13 +81,12 @@ function makeColorTest(name, value, segments) {
|
||||||
.map(([attr, v]) => `${attr}="${v}"`)
|
.map(([attr, v]) => `${attr}="${v}"`)
|
||||||
.join(" ");
|
.join(" ");
|
||||||
|
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
result.expected +=
|
result.expected +=
|
||||||
`<span data-color="${segment.name}">` +
|
`<span data-color="${segment.name}">` +
|
||||||
`<span ${buttonAttrString}></span>`+
|
`<span ${buttonAttrString}></span>`+
|
||||||
`<span>${segment.name}</span>` +
|
`<span>${segment.name}</span>` +
|
||||||
`</span>`;
|
`</span>`;
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,9 +146,7 @@ function testParseCssProperty(doc, parser) {
|
||||||
// Test a very long property.
|
// Test a very long property.
|
||||||
makeColorTest(
|
makeColorTest(
|
||||||
"background-image",
|
"background-image",
|
||||||
/* eslint-disable max-len */
|
|
||||||
"linear-gradient(to left, transparent 0, transparent 5%,#F00 0, #F00 10%,#FF0 0, #FF0 15%,#0F0 0, #0F0 20%,#0FF 0, #0FF 25%,#00F 0, #00F 30%,#800 0, #800 35%,#880 0, #880 40%,#080 0, #080 45%,#088 0, #088 50%,#008 0, #008 55%,#FFF 0, #FFF 60%,#EEE 0, #EEE 65%,#CCC 0, #CCC 70%,#999 0, #999 75%,#666 0, #666 80%,#333 0, #333 85%,#111 0, #111 90%,#000 0, #000 95%,transparent 0, transparent 100%)",
|
"linear-gradient(to left, transparent 0, transparent 5%,#F00 0, #F00 10%,#FF0 0, #FF0 15%,#0F0 0, #0F0 20%,#0FF 0, #0FF 25%,#00F 0, #00F 30%,#800 0, #800 35%,#880 0, #880 40%,#080 0, #080 45%,#088 0, #088 50%,#008 0, #008 55%,#FFF 0, #FFF 60%,#EEE 0, #EEE 65%,#CCC 0, #CCC 70%,#999 0, #999 75%,#666 0, #666 80%,#333 0, #333 85%,#111 0, #111 90%,#000 0, #000 95%,transparent 0, transparent 100%)",
|
||||||
/* eslint-enable max-len */
|
|
||||||
[
|
[
|
||||||
"linear-gradient(to left, ",
|
"linear-gradient(to left, ",
|
||||||
{ name: "transparent", colorFunction: "linear-gradient" },
|
{ name: "transparent", colorFunction: "linear-gradient" },
|
||||||
|
@ -548,29 +545,27 @@ function testParseVariable(doc, parser) {
|
||||||
text: "var(--seen)",
|
text: "var(--seen)",
|
||||||
variables: { "--seen": "chartreuse" },
|
variables: { "--seen": "chartreuse" },
|
||||||
expected:
|
expected:
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
'<span data-color="chartreuse">' +
|
'<span data-color="chartreuse">' +
|
||||||
"<span>var(" +
|
"<span>var(" +
|
||||||
'<span data-variable="--seen = chartreuse">--seen</span>)' +
|
'<span data-variable="--seen = chartreuse">--seen</span>)' +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
"</span>",
|
"</span>",
|
||||||
/* eslint-enable */
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "var(--not-seen)",
|
text: "var(--not-seen)",
|
||||||
variables: {},
|
variables: {},
|
||||||
expected:
|
expected:
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
"<span>var(" +
|
"<span>var(" +
|
||||||
'<span class="unmatched-class" data-variable="--not-seen is not set">--not-seen</span>' +
|
'<span class="unmatched-class" data-variable="--not-seen is not set">--not-seen</span>' +
|
||||||
")</span>",
|
")</span>",
|
||||||
/* eslint-enable */
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "var(--seen, seagreen)",
|
text: "var(--seen, seagreen)",
|
||||||
variables: { "--seen": "chartreuse" },
|
variables: { "--seen": "chartreuse" },
|
||||||
expected:
|
expected:
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
'<span data-color="chartreuse">' +
|
'<span data-color="chartreuse">' +
|
||||||
"<span>var(" +
|
"<span>var(" +
|
||||||
'<span data-variable="--seen = chartreuse">--seen</span>,' +
|
'<span data-variable="--seen = chartreuse">--seen</span>,' +
|
||||||
|
@ -581,13 +576,12 @@ function testParseVariable(doc, parser) {
|
||||||
"</span>)" +
|
"</span>)" +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
"</span>",
|
"</span>",
|
||||||
/* eslint-enable */
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "var(--not-seen, var(--seen))",
|
text: "var(--not-seen, var(--seen))",
|
||||||
variables: { "--seen": "chartreuse" },
|
variables: { "--seen": "chartreuse" },
|
||||||
expected:
|
expected:
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
"<span>var(" +
|
"<span>var(" +
|
||||||
'<span class="unmatched-class" data-variable="--not-seen is not set">--not-seen</span>,' +
|
'<span class="unmatched-class" data-variable="--not-seen is not set">--not-seen</span>,' +
|
||||||
"<span> " +
|
"<span> " +
|
||||||
|
@ -598,13 +592,12 @@ function testParseVariable(doc, parser) {
|
||||||
"</span>" +
|
"</span>" +
|
||||||
"</span>)" +
|
"</span>)" +
|
||||||
"</span>",
|
"</span>",
|
||||||
/* eslint-enable */
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "color-mix(in sgrb, var(--x), purple)",
|
text: "color-mix(in sgrb, var(--x), purple)",
|
||||||
variables: { "--x": "yellow" },
|
variables: { "--x": "yellow" },
|
||||||
expected:
|
expected:
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
`color-mix(in sgrb, ` +
|
`color-mix(in sgrb, ` +
|
||||||
`<span data-color="yellow">` +
|
`<span data-color="yellow">` +
|
||||||
`<span class="test-class" style="background-color:yellow" tabindex="0" role="button" data-color-function="color-mix">` +
|
`<span class="test-class" style="background-color:yellow" tabindex="0" role="button" data-color-function="color-mix">` +
|
||||||
|
@ -618,7 +611,6 @@ function testParseVariable(doc, parser) {
|
||||||
`<span>purple</span>` +
|
`<span>purple</span>` +
|
||||||
`</span>` +
|
`</span>` +
|
||||||
`)`,
|
`)`,
|
||||||
/* eslint-enable */
|
|
||||||
parserExtraOptions: {
|
parserExtraOptions: {
|
||||||
colorSwatchClass: COLOR_TEST_CLASS,
|
colorSwatchClass: COLOR_TEST_CLASS,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this
|
* this
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
function foo(){console.log(foo)}
|
function foo(){console.log(foo)}
|
||||||
//# sourceMappingURL=test-click-function-to-source.min.js.map
|
//# sourceMappingURL=test-click-function-to-source.min.js.map
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
function foo(){console.log(foo)}
|
function foo(){console.log(foo)}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
function f() {
|
function f() {
|
||||||
bogus.g();
|
bogus.g();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
window.addEventListener("DOMContentLoaded", function () {
|
window.addEventListener("DOMContentLoaded", function () {
|
||||||
var canvas = document.querySelector("canvas");
|
var canvas = document.querySelector("canvas");
|
||||||
var context = canvas.getContext("2d");
|
var context = canvas.getContext("2d");
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
window.addEventListener("load", function () {
|
window.addEventListener("load", function () {
|
||||||
document.getElementById("");
|
document.getElementById("");
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this
|
* this
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
function logString(str){console.log(str)}function logTrace(){var logTraceInner=function(){console.trace()};logTraceInner()}
|
function logString(str){console.log(str)}function logTrace(){var logTraceInner=function(){console.trace()};logTraceInner()}
|
||||||
//# sourceMappingURL=test-sourcemap.min.js.map
|
//# sourceMappingURL=test-sourcemap.min.js.map
|
||||||
|
|
|
@ -97,7 +97,8 @@ const testBlackBox = async function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
function evalCode() {
|
function evalCode() {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-undef */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" + function doStuff(k) { // line 1
|
"" + function doStuff(k) { // line 1
|
||||||
var arg = 15; // line 2 - Step in here
|
var arg = 15; // line 2 - Step in here
|
||||||
|
@ -109,6 +110,7 @@ function evalCode() {
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" + function runTest() { // line 1
|
"" + function runTest() { // line 1
|
||||||
doStuff( // line 2 - Break here
|
doStuff( // line 2 - Break here
|
||||||
|
@ -124,7 +126,6 @@ function evalCode() {
|
||||||
SOURCE_URL,
|
SOURCE_URL,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const runTest = async function(onSteppedLocation, onDebuggerStatementFrames) {
|
const runTest = async function(onSteppedLocation, onDebuggerStatementFrames) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ function evaluateTestCode(debuggee) {
|
||||||
* along with the debuggee's.
|
* along with the debuggee's.
|
||||||
*/
|
*/
|
||||||
do_timeout(0, () => {
|
do_timeout(0, () => {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"debugger;\n" + // line0 + 1
|
"debugger;\n" + // line0 + 1
|
||||||
|
@ -49,6 +49,5 @@ function evaluateTestCode(debuggee) {
|
||||||
"var b = 2;\n", // line0 + 3
|
"var b = 2;\n", // line0 + 3
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,16 +60,15 @@ add_task(
|
||||||
|
|
||||||
// Use `evalInSandbox` to make the debugger treat it as normal
|
// Use `evalInSandbox` to make the debugger treat it as normal
|
||||||
// globally-scoped code, where breakpoint sliding rules apply.
|
// globally-scoped code, where breakpoint sliding rules apply.
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"debugger;\n" + // line0 + 1
|
"debugger;\n" + // line0 + 1
|
||||||
"var a = 1;\n" + // line0 + 2
|
"var a = 1;\n" + // line0 + 2
|
||||||
"// A comment.\n" + // line0 + 3
|
"// A comment.\n" + // line0 + 3
|
||||||
"var b = 2;", // line0 + 4
|
"var b = 2;", // line0 + 4
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
@ -42,7 +42,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"function foo() {\n" + // line0 + 1
|
"function foo() {\n" + // line0 + 1
|
||||||
|
@ -53,5 +53,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"foo();\n", // line0 + 6
|
"foo();\n", // line0 + 6
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ add_task(
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"function foo() {\n" + // line0 + 1
|
"function foo() {\n" + // line0 + 1
|
||||||
|
@ -57,7 +57,6 @@ add_task(
|
||||||
"foo();\n", // line0 + 7
|
"foo();\n", // line0 + 7
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
@ -45,7 +45,7 @@ add_task(
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"function foo() {\n" + // line0 + 1
|
"function foo() {\n" + // line0 + 1
|
||||||
|
@ -63,7 +63,6 @@ add_task(
|
||||||
"foo();\n", // line0 + 13
|
"foo();\n", // line0 + 13
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
@ -45,7 +45,7 @@ add_task(
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"function foo() {\n" + // line0 + 1
|
"function foo() {\n" + // line0 + 1
|
||||||
|
@ -60,7 +60,6 @@ add_task(
|
||||||
"foo();\n", // line0 + 10
|
"foo();\n", // line0 + 10
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
@ -52,7 +52,7 @@ add_task(
|
||||||
threadFront.resume();
|
threadFront.resume();
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
||||||
"function foo() {\n" + // line0 + 1
|
"function foo() {\n" + // line0 + 1
|
||||||
" this.a = 1;\n" + // line0 + 2
|
" this.a = 1;\n" + // line0 + 2
|
||||||
|
@ -63,13 +63,13 @@ add_task(
|
||||||
"1.7",
|
"1.7",
|
||||||
"script1.js");
|
"script1.js");
|
||||||
|
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox("var line1 = Error().lineNumber;\n" +
|
Cu.evalInSandbox("var line1 = Error().lineNumber;\n" +
|
||||||
"debugger;\n" + // line1 + 1
|
"debugger;\n" + // line1 + 1
|
||||||
"foo();\n", // line1 + 2
|
"foo();\n", // line1 + 2
|
||||||
debuggee,
|
debuggee,
|
||||||
"1.7",
|
"1.7",
|
||||||
"script2.js");
|
"script2.js");
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
@ -55,18 +55,17 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
||||||
"function foo(stop) {\n" + // line0 + 1
|
"function foo(stop) {\n" + // line0 + 1
|
||||||
" this.a = 1;\n" + // line0 + 2
|
" this.a = 1;\n" + // line0 + 2
|
||||||
" if (stop) return;\n" + // line0 + 3
|
" if (stop) return;\n" + // line0 + 3
|
||||||
" delete this.a;\n" + // line0 + 4
|
" delete this.a;\n" + // line0 + 4
|
||||||
" foo(true);\n" + // line0 + 5
|
" foo(true);\n" + // line0 + 5
|
||||||
"}\n" + // line0 + 6
|
"}\n" + // line0 + 6
|
||||||
"debugger;\n" + // line0 + 7
|
"debugger;\n" + // line0 + 7
|
||||||
"foo();\n", // line0 + 8
|
"foo();\n", // line0 + 8
|
||||||
debuggee);
|
debuggee);
|
||||||
/* eslint-enable */
|
|
||||||
if (!done) {
|
if (!done) {
|
||||||
Assert.ok(false);
|
Assert.ok(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,13 +70,12 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
||||||
"debugger;\n" + // line0 + 1
|
"debugger;\n" + // line0 + 1
|
||||||
"var a, i = 0;\n" + // line0 + 2
|
"var a, i = 0;\n" + // line0 + 2
|
||||||
"for (i = 1; i <= 2; i++) {\n" + // line0 + 3
|
"for (i = 1; i <= 2; i++) {\n" + // line0 + 3
|
||||||
" a = i;\n" + // line0 + 4
|
" a = i;\n" + // line0 + 4
|
||||||
"}\n", // line0 + 5
|
"}\n", // line0 + 5
|
||||||
debuggee);
|
debuggee);
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,11 +68,10 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
||||||
"debugger;\n" + // line0 + 1
|
"debugger;\n" + // line0 + 1
|
||||||
"var a = { b: 1, f: function() { return 2; } };\n" + // line0+2
|
"var a = { b: 1, f: function() { return 2; } };\n" + // line0+2
|
||||||
"var res = a.f();\n", // line0 + 3
|
"var res = a.f();\n", // line0 + 3
|
||||||
debuggee);
|
debuggee);
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,15 +77,14 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
Cu.evalInSandbox("var line0 = Error().lineNumber;\n" +
|
||||||
"function foo() {\n" + // line0 + 1
|
"function foo() {\n" + // line0 + 1
|
||||||
" this.a = 1;\n" + // line0 + 2 <-- Breakpoint is set here.
|
" this.a = 1;\n" + // line0 + 2 <-- Breakpoint is set here.
|
||||||
"}\n" + // line0 + 3
|
"}\n" + // line0 + 3
|
||||||
"debugger;\n" + // line0 + 4
|
"debugger;\n" + // line0 + 4
|
||||||
"foo();\n" + // line0 + 5
|
"foo();\n" + // line0 + 5
|
||||||
"debugger;\n" + // line0 + 6
|
"debugger;\n" + // line0 + 6
|
||||||
"var b = 2;\n", // line0 + 7
|
"var b = 2;\n", // line0 + 7
|
||||||
debuggee);
|
debuggee);
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,13 +44,12 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n" +
|
"var line0 = Error().lineNumber;\n" +
|
||||||
"(function () { debugger; this.acc = 0; for (var i = 0; i < 3; i++) this.acc++; }());",
|
"(function () { debugger; this.acc = 0; for (var i = 0; i < 3; i++) this.acc++; }());",
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function testAssertions(
|
async function testAssertions(
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
const URL = "test.js";
|
const URL = "test.js";
|
||||||
|
|
||||||
function setUpCode(debuggee) {
|
function setUpCode(debuggee) {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" + function test() { // 1
|
"" + function test() { // 1
|
||||||
var a = 1; // 2
|
var a = 1; // 2
|
||||||
|
@ -22,7 +23,7 @@ function setUpCode(debuggee) {
|
||||||
"1.8",
|
"1.8",
|
||||||
URL
|
URL
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
/* eslint-enable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
}
|
}
|
||||||
|
|
||||||
add_task(
|
add_task(
|
||||||
|
|
|
@ -36,9 +36,10 @@ add_task(
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
/* eslint-disable */
|
|
||||||
function evalCode(debuggee) {
|
function evalCode(debuggee) {
|
||||||
// Start a new script
|
// Start a new script
|
||||||
|
/* eslint-disable mozilla/var-only-at-top-level, max-nested-callbacks, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"var line0 = Error().lineNumber;\n(" + function () {
|
"var line0 = Error().lineNumber;\n(" + function () {
|
||||||
debugger;
|
debugger;
|
||||||
|
@ -57,4 +58,5 @@ function evalCode(debuggee) {
|
||||||
} + ")()",
|
} + ")()",
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
|
/* eslint-enable mozilla/var-only-at-top-level, max-nested-callbacks, no-unused-vars */
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
try {
|
try {
|
||||||
Cu.evalInSandbox(` // 1
|
Cu.evalInSandbox(` // 1
|
||||||
debugger; // 2
|
debugger; // 2
|
||||||
|
@ -50,5 +50,4 @@ function evaluateTestCode(debuggee) {
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(` // 1
|
Cu.evalInSandbox(` // 1
|
||||||
function QueryInterface() { // 2
|
function QueryInterface() { // 2
|
||||||
throw Cr.NS_ERROR_NO_INTERFACE; // 3
|
throw Cr.NS_ERROR_NO_INTERFACE; // 3
|
||||||
|
@ -47,5 +47,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"test_ignore_no_interface_exceptions.js",
|
"test_ignore_no_interface_exceptions.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,8 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
/* eslint-disable no-throw-literal */
|
||||||
|
// prettier-ignore
|
||||||
debuggee.eval("(" + function () {
|
debuggee.eval("(" + function () {
|
||||||
function stopMe() {
|
function stopMe() {
|
||||||
debugger;
|
debugger;
|
||||||
|
@ -38,5 +39,5 @@ function evaluateTestCode(debuggee) {
|
||||||
stopMe();
|
stopMe();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
} + ")()");
|
} + ")()");
|
||||||
/* eslint-enable */
|
/* eslint-enable no-throw-literal */
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,8 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
/* eslint-disable no-throw-literal */
|
||||||
|
// prettier-ignore
|
||||||
debuggee.eval("(" + function () { // 1
|
debuggee.eval("(" + function () { // 1
|
||||||
function stopMe() { // 2
|
function stopMe() { // 2
|
||||||
throw 42; // 3
|
throw 42; // 3
|
||||||
|
@ -36,5 +37,4 @@ function evaluateTestCode(debuggee) {
|
||||||
stopMe(); // 6
|
stopMe(); // 6
|
||||||
} catch (e) {} // 7
|
} catch (e) {} // 7
|
||||||
} + ")()");
|
} + ")()");
|
||||||
/* eslint-enable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
` // 1
|
` // 1
|
||||||
function stopMe() { // 2
|
function stopMe() { // 2
|
||||||
|
@ -50,5 +50,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"test_pause_exceptions-03.js",
|
"test_pause_exceptions-03.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ add_task(
|
||||||
async function evaluateTestCode(debuggee, throwValue) {
|
async function evaluateTestCode(debuggee, throwValue) {
|
||||||
await waitForTick();
|
await waitForTick();
|
||||||
try {
|
try {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
` // 1
|
` // 1
|
||||||
function stopMeAgain() { // 2
|
function stopMeAgain() { // 2
|
||||||
|
@ -89,6 +89,5 @@ async function evaluateTestCode(debuggee, throwValue) {
|
||||||
"test_pause_exceptions-04.js",
|
"test_pause_exceptions-04.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,8 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evalCode(debuggee) {
|
function evalCode(debuggee) {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"doTest();\n" +
|
"doTest();\n" +
|
||||||
function doTest() {
|
function doTest() {
|
||||||
|
@ -39,5 +40,5 @@ function evalCode(debuggee) {
|
||||||
},
|
},
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
/* eslint-enable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evalCode(debuggee) {
|
function evalCode(debuggee) {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"doTest();\n" +
|
"doTest();\n" +
|
||||||
function doTest() {
|
function doTest() {
|
||||||
|
@ -54,5 +55,5 @@ function evalCode(debuggee) {
|
||||||
},
|
},
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
/* eslint-enable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evalCode(debuggee) {
|
function evalCode(debuggee) {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"doTest();\n" +
|
"doTest();\n" +
|
||||||
function doTest() {
|
function doTest() {
|
||||||
|
@ -53,5 +54,5 @@ function evalCode(debuggee) {
|
||||||
},
|
},
|
||||||
debuggee
|
debuggee
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
/* eslint-enable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
` // 1
|
` // 1
|
||||||
debugger; // 2
|
debugger; // 2
|
||||||
|
@ -54,5 +54,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"test_stepping-01-test-code.js",
|
"test_stepping-01-test-code.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
` // 1
|
` // 1
|
||||||
function f() { // 2
|
function f() { // 2
|
||||||
|
@ -40,5 +40,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"test_stepping-01-test-code.js",
|
"test_stepping-01-test-code.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
` // 1
|
` // 1
|
||||||
function f() { // 2
|
function f() { // 2
|
||||||
|
@ -47,5 +47,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"test_stepping-01-test-code.js",
|
"test_stepping-01-test-code.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ add_task(
|
||||||
);
|
);
|
||||||
|
|
||||||
function evaluateTestCode(debuggee) {
|
function evaluateTestCode(debuggee) {
|
||||||
/* eslint-disable */
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
` // 1
|
` // 1
|
||||||
debugger; // 2
|
debugger; // 2
|
||||||
|
@ -81,5 +81,4 @@ function evaluateTestCode(debuggee) {
|
||||||
"test_stepping-01-test-code.js",
|
"test_stepping-01-test-code.js",
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-disable */
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,8 @@ add_task(
|
||||||
|
|
||||||
async function testSymbols(threadFront, debuggee) {
|
async function testSymbols(threadFront, debuggee) {
|
||||||
const evalCode = () => {
|
const evalCode = () => {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"(" + function () {
|
"(" + function () {
|
||||||
var symbolWithName = Symbol("Chris");
|
var symbolWithName = Symbol("Chris");
|
||||||
|
@ -30,7 +31,7 @@ async function testSymbols(threadFront, debuggee) {
|
||||||
URL,
|
URL,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
/* eslint-enable mozilla/var-only-at-top-level, no-unused-vars */
|
||||||
};
|
};
|
||||||
|
|
||||||
const packet = await executeOnNextTickAndWaitForPause(evalCode, threadFront);
|
const packet = await executeOnNextTickAndWaitForPause(evalCode, threadFront);
|
||||||
|
|
|
@ -17,7 +17,8 @@ add_task(
|
||||||
|
|
||||||
async function testSymbols(threadFront, debuggee) {
|
async function testSymbols(threadFront, debuggee) {
|
||||||
const evalCode = () => {
|
const evalCode = () => {
|
||||||
/* eslint-disable */
|
/* eslint-disable mozilla/var-only-at-top-level, no-extend-native, no-unused-vars */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"(" + function () {
|
"(" + function () {
|
||||||
Symbol.prototype.toString = () => {
|
Symbol.prototype.toString = () => {
|
||||||
|
@ -31,7 +32,7 @@ async function testSymbols(threadFront, debuggee) {
|
||||||
URL,
|
URL,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-enable */
|
/* eslint-enable mozilla/var-only-at-top-level, no-extend-native, no-unused-vars */
|
||||||
};
|
};
|
||||||
|
|
||||||
const packet = await executeOnNextTickAndWaitForPause(evalCode, threadFront);
|
const packet = await executeOnNextTickAndWaitForPause(evalCode, threadFront);
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Test that we can read core dumps into HeapSnapshot instances in a worker.
|
// Test that we can read core dumps into HeapSnapshot instances in a worker.
|
||||||
// eslint-disable-next-line
|
add_task(async function() {
|
||||||
add_task(async function () {
|
|
||||||
const worker = new ChromeWorker("resource://test/heap-snapshot-worker.js");
|
const worker = new ChromeWorker("resource://test/heap-snapshot-worker.js");
|
||||||
worker.postMessage({});
|
worker.postMessage({});
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ function run_test() {
|
||||||
CensusUtils.countToBucketBreakdown(BREAKDOWN)
|
CensusUtils.countToBucketBreakdown(BREAKDOWN)
|
||||||
);
|
);
|
||||||
|
|
||||||
/* eslint-disable */
|
|
||||||
// DFS Index
|
// DFS Index
|
||||||
|
// prettier-ignore
|
||||||
return new Map([ // 0
|
return new Map([ // 0
|
||||||
[stack1, { // 1
|
[stack1, { // 1
|
||||||
JSObject: [101, 102, 103], // 2
|
JSObject: [101, 102, 103], // 2
|
||||||
|
@ -45,7 +45,6 @@ function run_test() {
|
||||||
JSString: [411, 412, 413], // 12
|
JSString: [411, 412, 413], // 12
|
||||||
}],
|
}],
|
||||||
]);
|
]);
|
||||||
/* eslint-enable */
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ devtools/client/shared/sourceeditor/codemirror/
|
||||||
devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
|
devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
|
||||||
devtools/client/shared/sourceeditor/test/codemirror/
|
devtools/client/shared/sourceeditor/test/codemirror/
|
||||||
devtools/client/shared/vendor/
|
devtools/client/shared/vendor/
|
||||||
|
devtools/client/inspector/markup/test/helper_diff.js
|
||||||
devtools/shared/acorn/
|
devtools/shared/acorn/
|
||||||
devtools/shared/heapsnapshot/CoreDump.pb.cc
|
devtools/shared/heapsnapshot/CoreDump.pb.cc
|
||||||
devtools/shared/heapsnapshot/CoreDump.pb.h
|
devtools/shared/heapsnapshot/CoreDump.pb.h
|
||||||
|
|
Загрузка…
Ссылка в новой задаче