479df6a27d
Bug: chromium:1097184 Change-Id: Ifa64885cb74ffe05ef56aca59150c89d8f11dd1d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2945276 Auto-Submit: Dylan Cutler <dylancutler@google.com> Reviewed-by: Sigurd Schneider <sigurds@chromium.org> Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Cr-Commit-Position: refs/heads/master@{#75067}
16 lines
729 B
JavaScript
16 lines
729 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.getPossibleBreakpoints');
|
|
|
|
var source = utils.read('test/inspector/debugger/resources/break-locations.js');
|
|
contextGroup.addScript(source);
|
|
session.setupScriptMap();
|
|
|
|
Protocol.Debugger.onceScriptParsed()
|
|
.then(message => Protocol.Debugger.getPossibleBreakpoints({ start: { lineNumber: 0, columnNumber : 0, scriptId: message.params.scriptId }}))
|
|
.then(message => session.logBreakLocations(message.result.locations))
|
|
.then(InspectorTest.completeTest);
|
|
Protocol.Debugger.enable();
|