mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: replace "inspector-cli" with "debugger"
When I moved node-inspect into core, I called a lot of things `inspector-cli` that really should have been `debugger`. This is the last of them to be renamed. PR-URL: https://github.com/nodejs/node/pull/39156 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
aafa08d7b9
commit
fff21a4afb
33 files changed
+28
-28
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -37,7 +37,7 @@ function launchTarget(...args) {
|
||||
}
|
||||
|
||||
{
|
||||
const script = fixtures.path('inspector-cli/alive.js');
|
||||
const script = fixtures.path('debugger/alive.js');
|
||||
let cli = null;
|
||||
let target = null;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ addLibraryPath(process.env);
|
||||
|
||||
// Auto-resume on start if the environment variable is defined.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'break.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'break.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
|
||||
const env = { ...process.env };
|
||||
|
||||
@@ -11,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// Display and navigate backtrace.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'backtrace.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'backtrace.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
const cli = startCLI([script]);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// Stepping through breakpoints.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'break.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'break.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
const cli = startCLI([script]);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// clearBreakpoint
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'break.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'break.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
const cli = startCLI([script]);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// Custom port.
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
|
||||
const cli = startCLI([`--port=${common.PORT}`, script]);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// Break on (uncaught) exceptions.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'exceptions.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'exceptions.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
const cli = startCLI([script]);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// exec .scope
|
||||
{
|
||||
const cli = startCLI([fixtures.path('inspector-cli/backtrace.js')]);
|
||||
const cli = startCLI([fixtures.path('debugger/backtrace.js')]);
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
{
|
||||
|
||||
const cli = startCLI([fixtures.path('inspector-cli/alive.js')]);
|
||||
const cli = startCLI([fixtures.path('debugger/alive.js')]);
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
@@ -20,7 +20,7 @@ const filename = 'node.heapsnapshot';
|
||||
|
||||
// Heap profiler take snapshot.
|
||||
{
|
||||
const cli = startCLI([fixtures.path('inspector-cli/empty.js')]);
|
||||
const cli = startCLI([fixtures.path('debugger/empty.js')]);
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
@@ -9,7 +9,7 @@ const startCLI = require('../common/debugger');
|
||||
const assert = require('assert');
|
||||
|
||||
{
|
||||
const cli = startCLI([fixtures.path('inspector-cli/empty.js')]);
|
||||
const cli = startCLI([fixtures.path('debugger/empty.js')]);
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
@@ -41,7 +41,7 @@ const { createServer } = require('net');
|
||||
});
|
||||
|
||||
try {
|
||||
const script = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
const cli = startCLI([`--port=${port}`, script]);
|
||||
const code = await cli.quit();
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ const startCLI = require('../common/debugger');
|
||||
const assert = require('assert');
|
||||
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
const cli = startCLI([script]);
|
||||
|
||||
cli.waitForInitialBreak()
|
||||
|
||||
@@ -9,8 +9,8 @@ const assert = require('assert');
|
||||
|
||||
// Debugger agent direct access.
|
||||
{
|
||||
const cli = startCLI([fixtures.path('inspector-cli/three-lines.js')]);
|
||||
const scriptPattern = /^\* (\d+): \S+inspector-cli(?:\/|\\)three-lines\.js/m;
|
||||
const cli = startCLI([fixtures.path('debugger/three-lines.js')]);
|
||||
const scriptPattern = /^\* (\d+): \S+debugger(?:\/|\\)three-lines\.js/m;
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
@@ -16,7 +16,7 @@ function launchTarget(...args) {
|
||||
}
|
||||
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'alive.js');
|
||||
const script = fixtures.path('debugger', 'alive.js');
|
||||
let cli = null;
|
||||
let target = null;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// Run after quit.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'three-lines.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
const cli = startCLI([script]);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ function delay(ms) {
|
||||
|
||||
// Profiles.
|
||||
{
|
||||
const cli = startCLI([fixtures.path('inspector-cli/empty.js')]);
|
||||
const cli = startCLI([fixtures.path('debugger/empty.js')]);
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// Random port with --inspect-port=0.
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
|
||||
const cli = startCLI(['--inspect-port=0', script]);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// Random port.
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
|
||||
const cli = startCLI(['--port=0', script]);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// Run after quit/restart.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'three-lines.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
const cli = startCLI([script]);
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ const path = require('path');
|
||||
|
||||
// Using sb before loading file.
|
||||
{
|
||||
const scriptFullPath = fixtures.path('inspector-cli', 'cjs', 'index.js');
|
||||
const scriptFullPath = fixtures.path('debugger', 'cjs', 'index.js');
|
||||
const script = path.relative(process.cwd(), scriptFullPath);
|
||||
|
||||
const otherScriptFullPath = fixtures.path('inspector-cli', 'cjs', 'other.js');
|
||||
const otherScriptFullPath = fixtures.path('debugger', 'cjs', 'other.js');
|
||||
const otherScript = path.relative(process.cwd(), otherScriptFullPath);
|
||||
|
||||
const cli = startCLI([script]);
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// List scripts.
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'three-lines.js');
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
const cli = startCLI([script]);
|
||||
|
||||
function onFatal(error) {
|
||||
@@ -24,7 +24,7 @@ const assert = require('assert');
|
||||
.then(() => {
|
||||
assert.match(
|
||||
cli.output,
|
||||
/^\* \d+: \S+inspector-cli(?:\/|\\)three-lines\.js/m,
|
||||
/^\* \d+: \S+debugger(?:\/|\\)three-lines\.js/m,
|
||||
'lists the user script');
|
||||
assert.doesNotMatch(
|
||||
cli.output,
|
||||
@@ -35,7 +35,7 @@ const assert = require('assert');
|
||||
.then(() => {
|
||||
assert.match(
|
||||
cli.output,
|
||||
/\* \d+: \S+inspector-cli(?:\/|\\)three-lines\.js/,
|
||||
/\* \d+: \S+debugger(?:\/|\\)three-lines\.js/,
|
||||
'lists the user script');
|
||||
assert.match(
|
||||
cli.output,
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// Test for files that start with strict directive.
|
||||
{
|
||||
const script = fixtures.path('inspector-cli', 'use-strict.js');
|
||||
const script = fixtures.path('debugger', 'use-strict.js');
|
||||
const cli = startCLI([script]);
|
||||
|
||||
function onFatal(error) {
|
||||
|
||||
@@ -10,7 +10,7 @@ const assert = require('assert');
|
||||
|
||||
// Stepping through breakpoints.
|
||||
{
|
||||
const cli = startCLI([fixtures.path('inspector-cli/break.js')]);
|
||||
const cli = startCLI([fixtures.path('debugger/break.js')]);
|
||||
|
||||
function onFatal(error) {
|
||||
cli.quit();
|
||||
|
||||
Reference in new issue
Block a user