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

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

Issue 1649553002: [DevTools] Support source map with blackboxing in call frame sidebar, console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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-with-source-map-blackboxing.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-with-source-map-blackboxing.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-with-source-map-blackboxing.html
new file mode 100644
index 0000000000000000000000000000000000000000..35eedc540ac13a37789011e2486bd3a6cc575160
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-with-source-map-blackboxing.html
@@ -0,0 +1,39 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script src="../debugger/resources/framework-with-sourcemap.js"></script>
+<script>
+function testFunction()
+{
+ Framework.callFunction((a) => {debugger; ++a});
+}
+
+function test()
+{
+ var frameworkRegexString = "/foo\\.js$";
+ WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
+
+ InspectorTest.runDebuggerTestSuite([
+ function testBlackboxing(next)
+ {
+ InspectorTest.waitUntilPaused(step1);
+ InspectorTest.evaluateInPageWithTimeout("testFunction()");
+
+ function step1(callFrames, reason, breakpointIds, asyncStackTrace)
+ {
+ InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
+ InspectorTest.runAfterPendingDispatches(next);
+ }
+ },
+ ]);
+}
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests framework black-boxing with source maps.
+</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698