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

Side by Side Diff: LayoutTests/inspector/tracing.html

Issue 270553005: Support warning decorations in Timeline flame chart based on trace events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed timeline tests Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing-session-id.html » ('j') | 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 <style> 3 <style>
4 div#test { 4 div#test {
5 display: none; 5 display: none;
6 background-color: blue; 6 background-color: blue;
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 } 9 }
10 </style> 10 </style>
11 <script src="../http/tests/inspector/inspector-test.js"></script> 11 <script src="../http/tests/inspector/inspector-test.js"></script>
12 <script> 12 <script>
13 function doWork() 13 function doWork()
14 { 14 {
15 var element = document.getElementById("test"); 15 var element = document.getElementById("test");
16 element.style.display = "block"; 16 element.style.display = "block";
17 var unused = element.clientWidth; 17 var unused = element.clientWidth;
18 } 18 }
19 19
20 function test() 20 function test()
21 { 21 {
22 WebInspector.inspectorView.showPanel("timeline");
23
22 function runEventsSanityCheck() 24 function runEventsSanityCheck()
23 { 25 {
24 var events = []; 26 var events = [];
25 var phaseComplete = 0; 27 var phaseComplete = 0;
26 var knownEvents = {}; 28 var knownEvents = {};
27 var processes = 0; 29 var processes = 0;
28 var threads = 0; 30 var threads = 0;
29 31
30 tracingModel.sortedProcesses().forEach(function(process) { 32 tracingModel.sortedProcesses().forEach(function(process) {
31 processes++; 33 processes++;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 77 }
76 } 78 }
77 79
78 </script> 80 </script>
79 </head> 81 </head>
80 <body onload="runTest()"> 82 <body onload="runTest()">
81 <div id="test"> 83 <div id="test">
82 </div> 84 </div>
83 </body> 85 </body>
84 </html> 86 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing-session-id.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698