Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: fix new test for chakracore
Browse files Browse the repository at this point in the history
* Fixed inspector test which tries to enable Profiler

PR-URL: #282
Reviewed-By: Kunal Pathak <[email protected]>
  • Loading branch information
kfarnung committed Jun 1, 2017
1 parent 028afb2 commit 4b46242
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions test/inspector/test-inspector-debug-brk.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ function testBreakpointOnStart(session) {
{ 'method': 'Debugger.setPauseOnExceptions',
'params': {'state': 'none'} },
{ 'method': 'Debugger.setAsyncCallStackDepth',
'params': {'maxDepth': 0} },
{ 'method': 'Profiler.enable' },
{ 'method': 'Profiler.setSamplingInterval',
'params': {'interval': 100} },
'params': {'maxDepth': 0} }
];

if (process.jsEngine !== 'chakracore') {
commands.push(
{ 'method': 'Profiler.enable' },
{ 'method': 'Profiler.setSamplingInterval',
'params': {'interval': 100} });
}

commands.push(
{ 'method': 'Debugger.setBlackboxPatterns',
'params': {'patterns': []} },
{ 'method': 'Runtime.runIfWaitingForDebugger' }
];
{ 'method': 'Runtime.runIfWaitingForDebugger' });

session
.sendInspectorCommands(commands)
Expand Down

0 comments on commit 4b46242

Please sign in to comment.