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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-time.html

Issue 1951773002: [DevTools] add console.time/timeEnd default value for argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-time-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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>
6
7 function testFunction()
8 {
9 console.time();
10 console.timeEnd();
11 console.time("42");
12 console.timeEnd("42");
13 console.time(239)
14 console.timeEnd(239);
15 console.time({});
16 console.timeEnd({});
17 }
18
19 function test()
20 {
21 InspectorTest.waitUntilNthMessageReceived(4, dumpMessagesAndCompleTest);
22 InspectorTest.evaluateInPage("testFunction()");
23
24 function dumpMessagesAndCompleTest()
25 {
26 var messages = InspectorTest.dumpConsoleMessagesIntoArray();
27 messages = messages.map(message => message.replace(/\d+\.\d+ms/, "<time> "));
28 InspectorTest.addResults(messages);
29 InspectorTest.completeTest();
30 }
31 }
32 </script>
33 </head>
34 <body onload="runTest()">
35 <p>
36 console.time / console.timeEnd tests.
37 </p>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-time-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698