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

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: Fix oilpan build 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..41ee9826a7fa2fa5f086402be1f2827b26497117 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,23 @@
<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()
+function boo()
{
- Framework.scheduleUntilDone(callback, 0);
+ return 239;
}
-function callback()
-{
- ++counter;
- if (counter === 1)
- stop();
- return counter === 2;
-}
-
-function stop()
+function testFunction()
{
debugger;
+ foo(boo);
}
function test()
{
- var frameworkRegexString = "/framework\\.js$";
+ var frameworkRegexString = "framework-with-source-map\\.js$";
WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
InspectorTest.startDebuggerTest(step1, true);
@@ -40,10 +31,10 @@ function test()
function step2()
{
var actions = [
- "Print", // debugger;
- "StepOut", "Print",
+ "Print",
+ "StepInto", "Print",
"StepInto", "Print",
- "StepInto", "Print", // Should NOT stop on setTimeout() inside framework
+ "StepOut", "Print"
];
InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
}
@@ -58,9 +49,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