| OLD | NEW |
| 1 var initialize_HeapSnapshotTest = function() { | 1 var initialize_HeapSnapshotTest = function() { |
| 2 | 2 |
| 3 InspectorTest.createHeapSnapshotMockFactories = function() { | 3 InspectorTest.createHeapSnapshotMockFactories = function() { |
| 4 | 4 |
| 5 InspectorTest.createJSHeapSnapshotMockObject = function() | 5 InspectorTest.createJSHeapSnapshotMockObject = function() |
| 6 { | 6 { |
| 7 return { | 7 return { |
| 8 _rootNodeIndex: 0, | 8 _rootNodeIndex: 0, |
| 9 _nodeTypeOffset: 0, | 9 _nodeTypeOffset: 0, |
| 10 _nodeNameOffset: 1, | 10 _nodeNameOffset: 1, |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 return node; | 682 return node; |
| 683 } | 683 } |
| 684 return null; | 684 return null; |
| 685 }; | 685 }; |
| 686 | 686 |
| 687 InspectorTest.switchToView = function(title, callback) | 687 InspectorTest.switchToView = function(title, callback) |
| 688 { | 688 { |
| 689 callback = InspectorTest.safeWrap(callback); | 689 callback = InspectorTest.safeWrap(callback); |
| 690 var view = WebInspector.panels.profiles.visibleView; | 690 var view = WebInspector.panels.profiles.visibleView; |
| 691 view.changeView(title, callback); | 691 view.changeView(title, callback); |
| 692 // Increase the grid container height so the viewport don't limit the number
of nodes. |
| 693 InspectorTest._currentGrid().scrollContainer.style.height = "10000px"; |
| 692 }; | 694 }; |
| 693 | 695 |
| 694 InspectorTest.takeAndOpenSnapshot = function(generator, callback) | 696 InspectorTest.takeAndOpenSnapshot = function(generator, callback) |
| 695 { | 697 { |
| 696 callback = InspectorTest.safeWrap(callback); | 698 callback = InspectorTest.safeWrap(callback); |
| 697 var snapshot = generator(); | 699 var snapshot = generator(); |
| 698 var profileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotPro
fileType; | 700 var profileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotPro
fileType; |
| 699 function pushGeneratedSnapshot(reportProgress, callback) | 701 function pushGeneratedSnapshot(reportProgress, callback) |
| 700 { | 702 { |
| 701 var profile = profileType.profileBeingRecorded(); | 703 var profile = profileType.profileBeingRecorded(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 function sortingComplete() | 738 function sortingComplete() |
| 737 { | 739 { |
| 738 dataGrid.removeEventListener("sorting complete", sortingComplete, nu
ll); | 740 dataGrid.removeEventListener("sorting complete", sortingComplete, nu
ll); |
| 739 callback(); | 741 callback(); |
| 740 } | 742 } |
| 741 dataGrid.addEventListener("sorting complete", sortingComplete, null); | 743 dataGrid.addEventListener("sorting complete", sortingComplete, null); |
| 742 } | 744 } |
| 743 }; | 745 }; |
| 744 | 746 |
| 745 }; | 747 }; |
| OLD | NEW |