| OLD | NEW |
| 1 var initialize_HeapSnapshotTest = function() { | 1 var initialize_HeapSnapshotTest = function() { |
| 2 | 2 |
| 3 InspectorTest.preloadPanel("profiles"); | 3 InspectorTest.preloadPanel("profiles"); |
| 4 | 4 |
| 5 InspectorTest.createHeapSnapshotMockFactories = function() { | 5 InspectorTest.createHeapSnapshotMockFactories = function() { |
| 6 | 6 |
| 7 InspectorTest.createJSHeapSnapshotMockObject = function() | 7 InspectorTest.createJSHeapSnapshotMockObject = function() |
| 8 { | 8 { |
| 9 return { | 9 return { |
| 10 _rootNodeIndex: 0, | 10 _rootNodeIndex: 0, |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 row.removeEventListener(Profiler.HeapSnapshotGridNode.Events.PopulateCom
plete, populateComplete, this); | 612 row.removeEventListener(Profiler.HeapSnapshotGridNode.Events.PopulateCom
plete, populateComplete, this); |
| 613 function callCallback() | 613 function callCallback() |
| 614 { | 614 { |
| 615 callback(row); | 615 callback(row); |
| 616 } | 616 } |
| 617 setTimeout(callCallback, 0); | 617 setTimeout(callCallback, 0); |
| 618 } | 618 } |
| 619 row.addEventListener(Profiler.HeapSnapshotGridNode.Events.PopulateComplete,
populateComplete, this); | 619 row.addEventListener(Profiler.HeapSnapshotGridNode.Events.PopulateComplete,
populateComplete, this); |
| 620 (function expand() | 620 (function expand() |
| 621 { | 621 { |
| 622 if (row.hasChildren) | 622 if (row.hasChildren()) |
| 623 row.expand(); | 623 row.expand(); |
| 624 else | 624 else |
| 625 setTimeout(expand, 0); | 625 setTimeout(expand, 0); |
| 626 })(); | 626 })(); |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 InspectorTest.findAndExpandGCRoots = function(callback) | 629 InspectorTest.findAndExpandGCRoots = function(callback) |
| 630 { | 630 { |
| 631 InspectorTest.findAndExpandRow("(GC roots)", callback); | 631 InspectorTest.findAndExpandRow("(GC roots)", callback); |
| 632 }; | 632 }; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 function sortingComplete() | 727 function sortingComplete() |
| 728 { | 728 { |
| 729 dataGrid.removeEventListener(Profiler.HeapSnapshotSortableDataGrid.E
vents.SortingComplete, sortingComplete, null); | 729 dataGrid.removeEventListener(Profiler.HeapSnapshotSortableDataGrid.E
vents.SortingComplete, sortingComplete, null); |
| 730 callback(); | 730 callback(); |
| 731 } | 731 } |
| 732 dataGrid.addEventListener(Profiler.HeapSnapshotSortableDataGrid.Events.S
ortingComplete, sortingComplete, null); | 732 dataGrid.addEventListener(Profiler.HeapSnapshotSortableDataGrid.Events.S
ortingComplete, sortingComplete, null); |
| 733 } | 733 } |
| 734 }; | 734 }; |
| 735 | 735 |
| 736 }; | 736 }; |
| OLD | NEW |