OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |