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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-minified-variables.html

Issue 1653053002: Devtools: parse variables scopes and sourcemap them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-minified-variables.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-reload-on-pause.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-minified-variables.html
similarity index 54%
copy from third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-reload-on-pause.html
copy to third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-minified-variables.html
index 511553ec4fb00926a7707a4d58bc69df6ed6018d..6194afcf7b3e55599e1322293eb5d04b77f58bd2 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-reload-on-pause.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-scope-minified-variables.html
@@ -2,15 +2,11 @@
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script src="resources/resolve-variable-names-compressed.js"></script>
<script>
-
-function testFunction()
-{
- debugger;
-}
-
-var test = function()
+function test()
{
+ Runtime.experiments.enableForTest("resolveVariableNames");
InspectorTest.startDebuggerTest(step1);
function step1()
@@ -20,11 +16,13 @@ var test = function()
function step2()
{
- InspectorTest.reloadPage(step3);
+ InspectorTest.expandScopeVariablesSidebarPane(step3);
}
function step3()
{
+ InspectorTest.addResult("");
+ InspectorTest.dumpScopeVariablesSidebarPane();
InspectorTest.completeDebuggerTest();
}
}
@@ -33,9 +31,9 @@ var test = function()
</head>
<body onload="runTest()">
+<input type='button' onclick='testFunction()' value='Test'/>
dgozman 2016/02/22 17:24:56 Remove this?
sergeyv 2016/02/22 21:42:54 Done.
<p>
-Tests "reload" from within inspector window while on pause.
+Tests resolving variable names via source maps.
</p>
-
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698