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

Side by Side Diff: LayoutTests/inspector/console/console-timestamp.html

Issue 222143003: DevTools: Make ConsoleMessage TargetAware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@console-cpp-exec-context
Patch Set: Rebase Created 6 years, 8 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> 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> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var tzOffset = new Date(Date.now()).getTimezoneOffset() * 60 * 1000; 8 var tzOffset = new Date(Date.now()).getTimezoneOffset() * 60 * 1000;
9 var baseTimestamp = 1400000000000 + tzOffset; 9 var baseTimestamp = 1400000000000 + tzOffset;
10 10
11 function addMessageWithFixedTimestamp(messageText, timestamp) 11 function addMessageWithFixedTimestamp(messageText, timestamp)
12 { 12 {
13 var message = new WebInspector.ConsoleMessage( 13 var message = new WebInspector.ConsoleMessage(
14 WebInspector.console.target(),
14 WebInspector.ConsoleMessage.MessageSource.Other, // source 15 WebInspector.ConsoleMessage.MessageSource.Other, // source
15 WebInspector.ConsoleMessage.MessageLevel.Log, // level 16 WebInspector.ConsoleMessage.MessageLevel.Log, // level
16 messageText, 17 messageText,
17 undefined, // type 18 undefined, // type
18 undefined, // url 19 undefined, // url
19 undefined, // line 20 undefined, // line
20 undefined, // column 21 undefined, // column
21 undefined, // requestId 22 undefined, // requestId
22 undefined, // parameters 23 undefined, // parameters
23 undefined, // stackTrace 24 undefined, // stackTrace
(...skipping 23 matching lines...) Expand all
47 InspectorTest.completeTest(); 48 InspectorTest.completeTest();
48 } 49 }
49 </script> 50 </script>
50 </head> 51 </head>
51 <body onload="runTest()"> 52 <body onload="runTest()">
52 <p> 53 <p>
53 Tests the console timestamp setting. 54 Tests the console timestamp setting.
54 </p> 55 </p>
55 </body> 56 </body>
56 </html> 57 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-preserve-log.html ('k') | Source/devtools/front_end/CPUProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698