OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
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>console.log(239);</script> | 5 <script>console.log(239);</script> |
6 <script> | 6 <script> |
7 function test() | 7 function test() |
8 { | 8 { |
9 InspectorTest.dumpConsoleMessages(undefined, undefined, simpleFormatter); | 9 InspectorTest.dumpConsoleMessages(undefined, undefined, simpleFormatter); |
10 InspectorTest.completeTest(); | 10 InspectorTest.completeTest(); |
11 function simpleFormatter(element, message) | 11 function simpleFormatter(element, message) |
12 { | 12 { |
13 return message.messageText + ":" + message.line + ":" + message.column; | 13 return message.messageText + ":" + message.stackTrace.callFrames[0].line
Number + ":" + message.stackTrace.callFrames[0].columnNumber; |
14 } | 14 } |
15 } | 15 } |
16 </script> | 16 </script> |
17 </head> | 17 </head> |
18 <body onload="runTest()"> | 18 <body onload="runTest()"> |
19 <p> | 19 <p> |
20 Tests that console message from inline script in xhtml document contains correct
script position information. | 20 Tests that console message from inline script in xhtml document contains correct
script position information. |
21 </p> | 21 </p> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |