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

Unified Diff: LayoutTests/http/tests/inspector/debugger-test.js

Issue 738733006: DevTools: Support harmony variable scopes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 1 month 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
Index: LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/LayoutTests/http/tests/inspector/debugger-test.js b/LayoutTests/http/tests/inspector/debugger-test.js
index 6134cbb51494dc3d68888fc8b495b26912a823a5..bf992de609ac7d333afa4d5328bd54e396e0c1d2 100644
--- a/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/LayoutTests/http/tests/inspector/debugger-test.js
@@ -359,6 +359,26 @@ InspectorTest.dumpBreakpointSidebarPane = function(title)
InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(paneElement));
};
+InspectorTest.dumpScopeVariablesSidebarPane = function()
+{
+ InspectorTest.addResult("Scope variables sidebar pane:");
+ var sections = WebInspector.panels.sources.sidebarPanes.scopechain._sections;
+ for (var i = 0; i < sections.length; ++i) {
+ InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(sections[i].element));
+ if (!sections[i].expanded)
+ InspectorTest.addResult(" <section collapsed>");
+ }
+};
+
+InspectorTest.expandScopeVariablesSidebarPane = function(callback)
+{
+ // Expand all but the global scope. Expanding global scope takes for too long so we keep it collapsed.
+ var sections = WebInspector.panels.sources.sidebarPanes.scopechain._sections;
+ for (var i = 0; i < sections.length - 1; ++i)
+ sections[i].expand();
+ InspectorTest.runAfterPendingDispatches(callback);
+};
+
InspectorTest.expandProperties = function(properties, callback)
{
var index = 0;
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698