Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash: add a comment to a test file
  • Loading branch information
Eugene Ostroukhov committed Jan 14, 2019
commit 272197c880e261b7597d53d4ea79bdf19f13ef61
8 changes: 7 additions & 1 deletion test/parallel/test-inspector-console-top-frame.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
'use strict';

// Verify that the line containing console.log is reported as a top stack frame
// of the consoleAPICalled notification.
// Changing this will break many Inspector protocol clients, including
// debuggers that use that value for navigating from console messages to code.

const common = require('../common');
common.skipIfInspectorDisabled();

Expand All @@ -22,4 +28,4 @@ logMessage(); // Triggers Inspector notification

session.disconnect();
assert.strictEqual(basename(topFrame.url), basename(__filename));
assert.strictEqual(topFrame.lineNumber, 9);
assert.strictEqual(topFrame.lineNumber, 15);