| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script src="resources/framework.js"></script> | 5 <script src="resources/framework.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function runLogs() | 8 function runLogs() |
| 9 { | 9 { |
| 10 console.log("direct console.log()"); | 10 console.log("direct console.log()"); |
| 11 Framework.log("framework log"); | 11 Framework.log("framework log"); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function test() | 14 function test() |
| 15 { | 15 { |
| 16 var frameworkRegexString = "/framework\\.js$"; | 16 var frameworkRegexString = "/framework\\.js$"; |
| 17 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
ng); | 17 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
ng); |
| 18 | 18 |
| 19 InspectorTest.evaluateInPage("runLogs()"); | 19 InspectorTest.evaluateInPage("runLogs()"); |
| 20 InspectorTest.runAfterPendingDispatches(callback); | 20 InspectorTest.deprecatedRunAfterPendingDispatches(callback); |
| 21 function callback() | 21 function callback() |
| 22 { | 22 { |
| 23 InspectorTest.dumpConsoleMessages(); | 23 InspectorTest.dumpConsoleMessages(); |
| 24 InspectorTest.completeTest(); | 24 InspectorTest.completeTest(); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 | 27 |
| 28 </script> | 28 </script> |
| 29 </head> | 29 </head> |
| 30 <body onload="runTest()"> | 30 <body onload="runTest()"> |
| 31 <p> | 31 <p> |
| 32 Tests console.log() anchor location when the skip-stack-frames feature is enable
d. | 32 Tests console.log() anchor location when the skip-stack-frames feature is enable
d. |
| 33 </p> | 33 </p> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| OLD | NEW |