Index: test/inspector/debugger/resources/break-locations.js |
diff --git a/test/inspector/debugger/step-into.js b/test/inspector/debugger/resources/break-locations.js |
similarity index 76% |
copy from test/inspector/debugger/step-into.js |
copy to test/inspector/debugger/resources/break-locations.js |
index d4816d448863224d3126a3e2db93cba77728957d..2bad2199aa5263934c25090e5de1acf5841e4fa5 100644 |
--- a/test/inspector/debugger/step-into.js |
+++ b/test/inspector/debugger/resources/break-locations.js |
@@ -2,13 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-print('Checks possible break locations.'); |
- |
-InspectorTest.addScript(` |
- |
function testEval() { |
eval('// comment only'); |
- eval('// comment only\\n'); |
+ eval('// comment only\n'); |
} |
// function without return |
@@ -214,7 +210,6 @@ async function asyncFoo() { |
async function asyncBoo() { |
await Promise.resolve(); |
- |
} |
async function testAsyncAwait() { |
@@ -222,28 +217,4 @@ async function testAsyncAwait() { |
await awaitBoo(); |
} |
-//# sourceURL=test.js`); |
- |
-InspectorTest.setupScriptMap(); |
-Protocol.Debugger.onPaused(message => { |
- var frames = message.params.callFrames; |
- if (frames.length === 1) { |
- Protocol.Debugger.stepInto(); |
- return; |
- } |
- var scriptId = frames[0].location.scriptId; |
- InspectorTest.log('break at:'); |
- InspectorTest.logCallFrameSourceLocation(frames[0]) |
- .then(() => Protocol.Debugger.stepInto()); |
-}); |
- |
-Protocol.Debugger.enable(); |
-Protocol.Runtime.evaluate({ expression: 'Object.keys(this).filter(name => name.indexOf(\'test\') === 0)', returnByValue: true }) |
- .then(runTests); |
- |
-function runTests(message) { |
- var tests = message.result.result.value; |
- InspectorTest.runTestSuite(tests.map(test => eval(`(function ${test}(next) { |
- Protocol.Runtime.evaluate({ expression: 'debugger; ${test}()', awaitPromise: ${test.indexOf('testPromise') === 0}}).then(next); |
- })`))); |
-} |
+//# sourceURL=break-locations.js |