Upstream version 6.35.121.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / console / console-log-wrapped-in-framework.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script src="resources/framework.js"></script>
6 <script>
7
8 function runLogs()
9 {
10     console.log("direct console.log()");
11     Framework.log("framework log");
12 }
13
14 function test()
15 {
16     var frameworkRegexString = "/framework\\.js$";
17     WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest();
18     WebInspector.settings.skipStackFramesSwitch.set(true);
19     WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString);
20
21     InspectorTest.evaluateInPage("runLogs()");
22     InspectorTest.runAfterPendingDispatches(callback);
23     function callback()
24     {
25         InspectorTest.dumpConsoleMessages();
26         InspectorTest.completeTest();
27     }
28 }
29
30 </script>
31 </head>
32 <body onload="runTest()">
33 <p>
34 Tests console.log() anchor location when the skip-stack-frames feature is enabled.
35 </p>
36 </body>
37 </html>