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

Unified Diff: LayoutTests/inspector/console/console-log-wrapped-in-framework.html

Issue 211493002: DevTools: Show user code location for wrapped console.log() calls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-log-wrapped-in-framework-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/console/console-log-wrapped-in-framework.html
diff --git a/LayoutTests/inspector/console/console-log-wrapped-in-framework.html b/LayoutTests/inspector/console/console-log-wrapped-in-framework.html
new file mode 100644
index 0000000000000000000000000000000000000000..94d65b5141bd06bb944f8b7cc0d8020fd9d1bc9c
--- /dev/null
+++ b/LayoutTests/inspector/console/console-log-wrapped-in-framework.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/console-test.js"></script>
+<script src="resources/framework.js"></script>
+<script>
+
+function runLogs()
+{
+ console.log("direct console.log()");
+ Framework.log("framework log");
+}
+
+function test()
+{
+ var frameworkRegexString = "/framework\\.js$";
+ WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest();
+ WebInspector.settings.skipStackFramesSwitch.set(true);
+ WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString);
+
+ InspectorTest.evaluateInPage("runLogs()");
+ InspectorTest.runAfterPendingDispatches(callback);
+ function callback()
+ {
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>
+Tests console.log() anchor location when the skip-stack-frames feature is enabled.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-log-wrapped-in-framework-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698