| OLD | NEW |
| 1 var initialize_HeapSnapshotTest = function() { | 1 var initialize_HeapSnapshotTest = function() { |
| 2 | 2 |
| 3 InspectorTest.preloadPanel("heap_profiler"); | 3 InspectorTest.preloadPanel("heap_profiler"); |
| 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 | 475 |
| 476 InspectorTest.checkArrayIsSorted = function(contents, sortType, sortOrder) | 476 InspectorTest.checkArrayIsSorted = function(contents, sortType, sortOrder) |
| 477 { | 477 { |
| 478 function simpleComparator(a, b) | 478 function simpleComparator(a, b) |
| 479 { | 479 { |
| 480 return a < b ? -1 : (a > b ? 1 : 0); | 480 return a < b ? -1 : (a > b ? 1 : 0); |
| 481 } | 481 } |
| 482 function parseSize(size) | 482 function parseSize(size) |
| 483 { | 483 { |
| 484 // Remove thousands separator. | 484 // Remove thousands separator. |
| 485 return parseInt(size.replace(/[\u2009,]/g, ""), 10); | 485 return parseInt(size.replace(/[\xa0,]/g, ""), 10); |
| 486 } | 486 } |
| 487 var extractor = { | 487 var extractor = { |
| 488 text: function (data) { data; }, | 488 text: function (data) { data; }, |
| 489 number: function (data) { return parseInt(data, 10); }, | 489 number: function (data) { return parseInt(data, 10); }, |
| 490 size: parseSize, | 490 size: parseSize, |
| 491 name: function (data) { return data; }, | 491 name: function (data) { return data; }, |
| 492 id: function (data) { return parseInt(data, 10); } | 492 id: function (data) { return parseInt(data, 10); } |
| 493 }[sortType]; | 493 }[sortType]; |
| 494 | 494 |
| 495 if (!extractor) { | 495 if (!extractor) { |
| (...skipping 231 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 |