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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-node-reference.html

Issue 339493005: Move more methods into implementation specific timeline UI utils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/timeline/timeline-script-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 <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 <style> 5 <style>
6 .relayout-boundary { 6 .relayout-boundary {
7 overflow: hidden; 7 overflow: hidden;
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 } 10 }
(...skipping 11 matching lines...) Expand all
22 { 22 {
23 // Force panel load. 23 // Force panel load.
24 WebInspector.inspectorView.panel("elements"); 24 WebInspector.inspectorView.panel("elements");
25 25
26 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", func tion() { 26 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", func tion() {
27 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecord ed); 27 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecord ed);
28 }); 28 });
29 29
30 function clickValueLink(record, row) 30 function clickValueLink(record, row)
31 { 31 {
32 var helper = WebInspector.TimelineUIUtils.generateDetailsContent(record, record._model, new WebInspector.Linkifier(), onDetailsContentReady); 32 var helper = WebInspector.TimelineUIUtilsImpl.generateDetailsContent(rec ord, record._model, new WebInspector.Linkifier(), onDetailsContentReady);
33 33
34 function onDetailsContentReady(element) 34 function onDetailsContentReady(element)
35 { 35 {
36 var rows = element.querySelectorAll(".timeline-details-view-row"); 36 var rows = element.querySelectorAll(".timeline-details-view-row");
37 for (var i = 0; i < rows.length; ++i) { 37 for (var i = 0; i < rows.length; ++i) {
38 if (rows[i].firstChild.textContent.indexOf(row) !== -1) { 38 if (rows[i].firstChild.textContent.indexOf(row) !== -1) {
39 rows[i].lastChild.firstChild.click(); 39 rows[i].lastChild.firstChild.click();
40 return; 40 return;
41 } 41 }
42 } 42 }
(...skipping 29 matching lines...) Expand all
72 Tests the Timeline API instrumentation of a Layout event 72 Tests the Timeline API instrumentation of a Layout event
73 </p> 73 </p>
74 <div id="boundary" class="relayout-boundary"> 74 <div id="boundary" class="relayout-boundary">
75 <div> 75 <div>
76 <div id="invalidate1"><div>text</div></div> 76 <div id="invalidate1"><div>text</div></div>
77 </div> 77 </div>
78 </div> 78 </div>
79 79
80 </body> 80 </body>
81 </html> 81 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/timeline/timeline-script-id.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698