Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.html |
index 0dcee13642a2d9797b5e22c6fc7d4193aacb58de..5c4989994d2a218cf70e408e1345c7c2f3fec5d7 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.html |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-expand-scope.html |
@@ -30,19 +30,24 @@ function testFunction() |
function test() |
{ |
- InspectorTest.startDebuggerTest(step1); |
+ InspectorTest.startDebuggerTest(onTestStarted); |
- function step1() |
+ function onTestStarted() |
{ |
- InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
+ InspectorTest.runTestFunctionAndWaitUntilPaused(onDebuggerPaused); |
} |
- function step2() |
+ function onDebuggerPaused() |
{ |
- InspectorTest.expandScopeVariablesSidebarPane(step3); |
+ InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, "_sidebarPaneUpdatedForTest", onSidebarRendered, true); |
} |
- function step3() |
+ function onSidebarRendered() |
+ { |
+ InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded); |
+ } |
+ |
+ function onScopeVariablesExpanded() |
{ |
InspectorTest.addResult(""); |
InspectorTest.dumpScopeVariablesSidebarPane(); |