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> |