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

Side by Side Diff: LayoutTests/inspector/profiler/heap-snapshot-summary-search-by-id.html

Issue 449413002: DevTools: DataGrid: turn "element" getter to function. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot-summary-sorting-fields.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="heap-snapshot-test.js"></script> 4 <script src="heap-snapshot-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var instanceCount = 200; 9 var instanceCount = 200;
10 function createHeapSnapshot() 10 function createHeapSnapshot()
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 break; 83 break;
84 } 84 }
85 } 85 }
86 if (!constructorNode) { 86 if (!constructorNode) {
87 InspectorTest.addResult("FAIL: constructor " + construct orName + " not found in viewport"); 87 InspectorTest.addResult("FAIL: constructor " + construct orName + " not found in viewport");
88 return next(); 88 return next();
89 } 89 }
90 var instanceNodes = constructorNode.children; 90 var instanceNodes = constructorNode.children;
91 for (var i = 0; i < instanceNodes.length; i++) { 91 for (var i = 0; i < instanceNodes.length; i++) {
92 if (instanceNodes[i].snapshotNodeId == nodeId) { 92 if (instanceNodes[i].snapshotNodeId == nodeId) {
93 if (!instanceNodes[i].element.classList.contains("hi ghlighted-row")) { 93 if (!instanceNodes[i].element().classList.contains(" highlighted-row")) {
94 if (constructorsGrid._nodeToHighlightAfterScroll === instanceNodes[i]) { 94 if (constructorsGrid._nodeToHighlightAfterScroll === instanceNodes[i]) {
95 function afterScroll(nodeToHighlight) 95 function afterScroll(nodeToHighlight)
96 { 96 {
97 onSuccess(); 97 onSuccess();
98 } 98 }
99 InspectorTest.addSniffer(WebInspector.HeapSn apshotSortableDataGrid.prototype, "highlightNode", afterScroll); 99 InspectorTest.addSniffer(WebInspector.HeapSn apshotSortableDataGrid.prototype, "highlightNode", afterScroll);
100 return; 100 return;
101 } else { 101 } else {
102 InspectorTest.addResult("FAIL: node is not h ighlighted"); 102 InspectorTest.addResult("FAIL: node is not h ighlighted");
103 return next(); 103 return next();
(...skipping 12 matching lines...) Expand all
116 } 116 }
117 117
118 </script> 118 </script>
119 </head> 119 </head>
120 <body onload="runTest()"> 120 <body onload="runTest()">
121 <p> 121 <p>
122 Tests search in Summary view of detailed heap snapshots. 122 Tests search in Summary view of detailed heap snapshots.
123 </p> 123 </p>
124 </body> 124 </body>
125 </html> 125 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/profiler/heap-snapshot-summary-sorting-fields.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698