| Index: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| index c79c9121e4836ba7fd00e9bdb0f4b7cefedc293e..2192ed4e2d3395bd1e9a6ed50bd5fbd53c34fadf 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| @@ -19,6 +19,14 @@ InspectorTest.startDebuggerTest = function(callback, quiet)
|
| InspectorTest.safeWrap(callback)();
|
| };
|
|
|
| +InspectorTest.startDebuggerTestPromise = function(quiet)
|
| +{
|
| + var cb;
|
| + var p = new Promise(fullfill => cb = fullfill);
|
| + InspectorTest.startDebuggerTest(cb, quiet);
|
| + return p;
|
| +}
|
| +
|
| InspectorTest.completeDebuggerTest = function()
|
| {
|
| WebInspector.breakpointManager.setBreakpointsActive(true);
|
| @@ -86,6 +94,14 @@ InspectorTest.runTestFunctionAndWaitUntilPaused = function(callback)
|
| InspectorTest.waitUntilPaused(callback);
|
| };
|
|
|
| +InspectorTest.runTestFunctionAndWaitUntilPausedPromise = function()
|
| +{
|
| + var cb;
|
| + var p = new Promise(fullfill => cb = fullfill);
|
| + InspectorTest.runTestFunctionAndWaitUntilPaused(cb);
|
| + return p;
|
| +}
|
| +
|
| InspectorTest.runAsyncCallStacksTest = function(totalDebuggerStatements, maxAsyncCallStackDepth)
|
| {
|
| InspectorTest.setQuiet(true);
|
|
|