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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html

Issue 1579283002: [DevTools] Blackbox sources with inline source maps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@source-map-backend
Patch Set: Created 4 years, 11 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-frameworks/frameworks-skip-step-in-with-source-map.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
similarity index 56%
copy from third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout.html
copy to third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
index de0edb7e1449ce1b5a85f7573bf582555b4475ac..a8551c02d6516153cec1c239a2af44daae149299 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-step-into-skips-setTimeout.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in-with-source-map.html
@@ -2,32 +2,18 @@
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="../debugger/resources/framework.js"></script>
+<script src="../debugger/resources/framework-with-source-map-compiled.js"></script>
<script>
-var counter = 0;
-
function testFunction()
{
- Framework.scheduleUntilDone(callback, 0);
-}
-
-function callback()
-{
- ++counter;
- if (counter === 1)
- stop();
- return counter === 2;
-}
-
-function stop()
-{
debugger;
+ foo();
dgozman 2016/01/13 01:28:49 Let's make it foo(bar), where bar is defined in th
kozy 2016/01/13 20:47:57 Done.
}
function test()
{
- var frameworkRegexString = "/framework\\.js$";
+ var frameworkRegexString = "framework-with-source-map\\.js$";
WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
InspectorTest.startDebuggerTest(step1, true);
@@ -40,10 +26,9 @@ function test()
function step2()
{
var actions = [
- "Print", // debugger;
- "StepOut", "Print",
+ "Print",
"StepInto", "Print",
- "StepInto", "Print", // Should NOT stop on setTimeout() inside framework
+ "StepInto", "Print"
];
InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
}
@@ -58,9 +43,8 @@ function test()
</head>
<body onload="runTest()">
-<input type='button' onclick='testFunction()' value='Test'/>
<p>
-Tests that stepping into blackboxed framework will not pause on setTimeout() inside the framework.
+Tests that stepping into blackboxed framework will not pause if source map is used.
</p>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698