Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/updateCallFrameScopes.html

Issue 2234703003: [DevTools] Removed Debugger.canSetScriptSource & Debugger.getBacktrace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/inspector_protocol/generate-inspector-protocol-version » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/updateCallFrameScopes.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/updateCallFrameScopes.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/updateCallFrameScopes.html
index 1adeb75fa67de3a2535471c8289149f03d42bfa2..6de9574dab7c09e6f2b7a835bf12792078a298ed 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/updateCallFrameScopes.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/updateCallFrameScopes.html
@@ -7,38 +7,40 @@ function TestFunction()
{
var a = 2;
debugger;
+ debugger;
}
function test()
{
var newVariableValue = 55;
-
+
InspectorTest.sendCommand("Debugger.enable", {});
InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPaused;
InspectorTest.sendCommand("Runtime.evaluate", { "expression": "setTimeout(TestFunction, 0)" });
-
+
function handleDebuggerPaused(messageObject)
{
InspectorTest.log("Paused on 'debugger;'");
InspectorTest.eventHandler["Debugger.paused"] = undefined;
-
+
var topFrame = messageObject.params.callFrames[0];
var topFrameId = topFrame.callFrameId;
InspectorTest.sendCommand("Debugger.evaluateOnCallFrame", { "callFrameId": topFrameId, "expression": "a = " + newVariableValue }, callbackChangeValue);
}
-
+
function callbackChangeValue(response)
{
InspectorTest.log("Variable value changed");
- InspectorTest.sendCommand("Debugger.getBacktrace", { }, callbackGetBacktrace);
+ InspectorTest.eventHandler["Debugger.paused"] = callbackGetBacktrace;
+ InspectorTest.sendCommand("Debugger.resume", { });
}
function callbackGetBacktrace(response)
{
InspectorTest.log("Stacktrace re-read again");
- var localScope = response.result.callFrames[0].scopeChain[0];
+ var localScope = response.params.callFrames[0].scopeChain[0];
InspectorTest.sendCommand("Runtime.getProperties", { "objectId": localScope.object.objectId }, callbackGetProperties);
}
@@ -57,7 +59,7 @@ function test()
var actualValue = varNamedA.value.value;
InspectorTest.log("New variable is " + actualValue + ", expected is " + newVariableValue + ", old was: 2");
InspectorTest.log(actualValue == newVariableValue ? "SUCCESS" : "FAIL");
- } else {
+ } else {
InspectorTest.log("Failed to find variable in scope");
}
InspectorTest.completeTest();
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/inspector_protocol/generate-inspector-protocol-version » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698