Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html |
index bd1f320694f7780d56f0198b8875edb0a5116c01..b4bb0e5c55a03b073a8f400354845a440a631a8c 100644 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html |
@@ -15,18 +15,18 @@ function test() |
InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedOne; |
InspectorTest.sendCommand("Runtime.evaluate", { "expression": "setTimeout(testFunction, 0)" }); |
- |
+ |
var obsoleteTopFrameId; |
- |
+ |
function handleDebuggerPausedOne(messageObject) |
{ |
InspectorTest.log("Paused on 'debugger;'"); |
var topFrame = messageObject.params.callFrames[0]; |
obsoleteTopFrameId = topFrame.callFrameId; |
- |
+ |
InspectorTest.eventHandler["Debugger.paused"] = undefined; |
- |
+ |
InspectorTest.sendCommand("Debugger.resume", { }, callbackResume); |
} |
@@ -36,34 +36,27 @@ function test() |
InspectorTest.log("restartFrame"); |
InspectorTest.sendCommand("Debugger.restartFrame", { callFrameId: obsoleteTopFrameId }, callbackRestartFrame); |
} |
- |
+ |
function callbackRestartFrame(response) |
{ |
logErrorResponse(response); |
InspectorTest.log("evaluateOnFrame"); |
InspectorTest.sendCommand("Debugger.evaluateOnCallFrame", { callFrameId: obsoleteTopFrameId, expression: "0"} , callbackEvaluate); |
} |
- |
+ |
function callbackEvaluate(response) |
{ |
logErrorResponse(response); |
InspectorTest.log("setVariableValue"); |
InspectorTest.sendCommand("Debugger.setVariableValue", { callFrameId: obsoleteTopFrameId, scopeNumber: 0, variableName: "a", newValue: { value: 0 } }, callbackSetVariableValue); |
} |
- |
+ |
function callbackSetVariableValue(response) |
{ |
logErrorResponse(response); |
- InspectorTest.log("getStepInPositions"); |
- InspectorTest.sendCommand("Debugger.getStepInPositions", { callFrameId: obsoleteTopFrameId }, callbackGetStepInPositions); |
- } |
- |
- function callbackGetStepInPositions(response) |
- { |
- logErrorResponse(response); |
InspectorTest.completeTest(); |
} |
- |
+ |
function logErrorResponse(response) |
{ |
if (response.error) { |