| 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 087b3374755fe5d862eca763fd49119b55aebf13..560682d2979f6830cddfa14729b83e5d572d4688 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| @@ -654,26 +654,8 @@ InspectorTest.evaluateOnCurrentCallFrame = function(code)
|
| return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCallFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)));
|
| }
|
|
|
| -InspectorTest.prepareSourceFrameForBreakpointTest = function(sourceFrame)
|
| -{
|
| - var symbol = Symbol('waitedDecorations');
|
| - sourceFrame[symbol] = 0;
|
| - InspectorTest.addSniffer(sourceFrame.__proto__, "_willAddInlineDecorationsForTest", () => sourceFrame[symbol]++, true);
|
| - InspectorTest.addSniffer(sourceFrame.__proto__, "_didAddInlineDecorationsForTest", (updateWasScheduled) => {
|
| - sourceFrame[symbol]--;
|
| - if (!updateWasScheduled)
|
| - sourceFrame._breakpointDecorationsUpdatedForTest();
|
| - }, true);
|
| - sourceFrame._waitingForPossibleLocationsForTest = () => !!sourceFrame[symbol];
|
| -}
|
| -
|
| InspectorTest.waitJavaScriptSourceFrameBreakpoints = function(sourceFrame, inline)
|
| {
|
| - if (!sourceFrame._waitingForPossibleLocationsForTest) {
|
| - InspectorTest.addResult("Error: source frame should be prepared with InspectorTest.prepareSourceFrameForBreakpointTest function.");
|
| - InspectorTest.completeTest();
|
| - return;
|
| - }
|
| return waitUpdate().then(checkIfReady);
|
| function waitUpdate()
|
| {
|
| @@ -681,8 +663,6 @@ InspectorTest.waitJavaScriptSourceFrameBreakpoints = function(sourceFrame, inlin
|
| }
|
| function checkIfReady()
|
| {
|
| - if (sourceFrame._waitingForPossibleLocationsForTest())
|
| - return waitUpdate().then(checkIfReady);
|
| for (var breakpoint of Bindings.breakpointManager._allBreakpoints()) {
|
| if (breakpoint._fakePrimaryLocation && breakpoint.enabled())
|
| return waitUpdate().then(checkIfReady);
|
|
|