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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-timer.html

Issue 1353653003: DevTools: cleanup timeline concise record details generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed WS urls to be those of WS, not script Created 5 years, 3 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/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions(callback) 7 function performActions(callback)
8 { 8 {
9 var timerOne = setTimeout("1 + 1", 10); 9 var timerOne = setTimeout("1 + 1", 10);
10 var timerTwo = setInterval(intervalTimerWork, 20); 10 var timerTwo = setInterval(intervalTimerWork, 20);
11 var iteration = 0; 11 var iteration = 0;
12 12
13 function intervalTimerWork() 13 function intervalTimerWork()
14 { 14 {
15 if (++iteration < 2) 15 if (++iteration < 2)
16 return; 16 return;
17 clearInterval(timerTwo); 17 clearInterval(timerTwo);
18 callback(); 18 callback();
19 } 19 }
20 } 20 }
21 21
22 function test() 22 function test()
23 { 23 {
24 InspectorTest.invokeAsyncWithTimeline("performActions", finish); 24 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
25 25
26 function finish() 26 function finish()
27 { 27 {
28 InspectorTest.printTimelineRecords("TimerInstall"); 28 InspectorTest.printTimelineRecordsWithDetails("TimerInstall");
29 InspectorTest.printTimelineRecords("TimerFire"); 29 InspectorTest.printTimelineRecordsWithDetails("TimerFire");
30 InspectorTest.printTimelineRecords("TimerRemove"); 30 InspectorTest.printTimelineRecordsWithDetails("TimerRemove");
31 InspectorTest.printTimelineRecords("FunctionCall"); 31 InspectorTest.printTimelineRecords("FunctionCall");
32 InspectorTest.printTimelineRecords("EvaluateScript"); 32 InspectorTest.printTimelineRecordsWithDetails("EvaluateScript");
33 InspectorTest.completeTest(); 33 InspectorTest.completeTest();
34 } 34 }
35 } 35 }
36 36
37 if (!window.testRunner) 37 if (!window.testRunner)
38 setTimeout(performActions, 2000); 38 setTimeout(performActions, 2000);
39 39
40 </script> 40 </script>
41 </head> 41 </head>
42 42
43 <body onload="runTest()"> 43 <body onload="runTest()">
44 <p> 44 <p>
45 Tests the Timeline events for Timers 45 Tests the Timeline events for Timers
46 </p> 46 </p>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698