1908872dcd
Add tests. Bug: v8:5367 Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I2a4215a87ba1dae98c4b25547494165f534b4a66 Reviewed-on: https://chromium-review.googlesource.com/1218046 Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Mythri Alle <mythria@chromium.org> Cr-Commit-Position: refs/heads/master@{#55974}
38 lines
923 B
JavaScript
38 lines
923 B
JavaScript
// Copyright 2018 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.
|
|
//
|
|
// Flags: --harmony-public-fields --harmony-static-fields
|
|
|
|
let { session, contextGroup, Protocol } = InspectorTest.start(
|
|
"Checks Debugger.getPossibleBreakpoints for class fields"
|
|
);
|
|
|
|
(async function() {
|
|
session.setupScriptMap();
|
|
await Protocol.Debugger.enable();
|
|
|
|
const source = utils.read(
|
|
"test/inspector/debugger/resources/break-locations-class-fields.js"
|
|
);
|
|
|
|
contextGroup.addScript(source);
|
|
|
|
const {
|
|
params: { scriptId }
|
|
} = await Protocol.Debugger.onceScriptParsed();
|
|
|
|
const {
|
|
result: { locations }
|
|
} = await Protocol.Debugger.getPossibleBreakpoints({
|
|
start: {
|
|
lineNumber: 0,
|
|
columnNumber: 0,
|
|
scriptId
|
|
}
|
|
});
|
|
|
|
session.logBreakLocations(locations);
|
|
InspectorTest.completeTest();
|
|
})();
|