diff options
Diffstat (limited to 'deps/v8/test/inspector/debugger/get-possible-breakpoints-class-fields.js')
-rw-r--r-- | deps/v8/test/inspector/debugger/get-possible-breakpoints-class-fields.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/debugger/get-possible-breakpoints-class-fields.js b/deps/v8/test/inspector/debugger/get-possible-breakpoints-class-fields.js new file mode 100644 index 0000000000..068fce2557 --- /dev/null +++ b/deps/v8/test/inspector/debugger/get-possible-breakpoints-class-fields.js @@ -0,0 +1,37 @@ +// 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(); +})(); |