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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-log-in-xhtml.xhtml

Issue 2139543002: [DevTools] Report console API calls through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698