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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-timer-fired-from-eval-call-site.html

Issue 461323003: DevTools: Make Timeline tests use only model records (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-script-tag-1.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 window.callWhenDone = callback; 9 window.callWhenDone = callback;
10 var content = "" + 10 var content = "" +
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 function test() 28 function test()
29 { 29 {
30 InspectorTest.invokeAsyncWithTimeline("performActions", finish); 30 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
31 31
32 function finish() 32 function finish()
33 { 33 {
34 function formatter(record) 34 function formatter(record)
35 { 35 {
36 if (record.type === "TimerFire") { 36 if (record.type() === "TimerFire") {
37 var fnCallSite = record.children[0].data; 37 var fnCallSite = record.children()[0].data();
38 InspectorTest.addResult(record.type + " " + fnCallSite.scriptNam e + ":" + fnCallSite.scriptLine); 38 InspectorTest.addResult(record.type() + " " + fnCallSite.scriptN ame + ":" + fnCallSite.scriptLine);
39 } 39 }
40 } 40 }
41 InspectorTest.printTimelineRecords(null, formatter); 41 InspectorTest.printTimelineRecords(null, formatter);
42 InspectorTest.completeTest(); 42 InspectorTest.completeTest();
43 } 43 }
44 } 44 }
45 45
46 if (!window.testRunner) 46 if (!window.testRunner)
47 setTimeout(performActions, 3000); 47 setTimeout(performActions, 3000);
48 48
49 </script> 49 </script>
50 </head> 50 </head>
51 51
52 <body onload="runTest()"> 52 <body onload="runTest()">
53 <p> 53 <p>
54 Tests the Timeline API instrumentation of a TimerFired events inside evaluated s cripts. 54 Tests the Timeline API instrumentation of a TimerFired events inside evaluated s cripts.
55 </p> 55 </p>
56 56
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-script-tag-1.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698