| 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 = 25; | 9 var instanceCount = 25; |
| 10 function createHeapSnapshot() | 10 function createHeapSnapshot() |
| 11 { | 11 { |
| 12 return InspectorTest.createHeapSnapshot(instanceCount); | 12 return InspectorTest.createHeapSnapshot(instanceCount); |
| 13 } | 13 } |
| 14 | 14 |
| 15 InspectorTest.runHeapSnapshotTestSuite([ | 15 InspectorTest.runHeapSnapshotTestSuite([ |
| 16 function testSearch(next) | 16 function testSearch(next) |
| 17 { | 17 { |
| 18 InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, step1a); | 18 InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, step1a); |
| 19 | 19 |
| 20 function step1a() | 20 function step1a() |
| 21 { | 21 { |
| 22 InspectorTest.switchToView("Summary", step1b); | 22 InspectorTest.switchToView("Summary", step1b); |
| 23 } | 23 } |
| 24 | 24 |
| 25 function step1b() | 25 function step1b() |
| 26 { | 26 { |
| 27 var row = InspectorTest.findRow("object", "Window"); | 27 var row = InspectorTest.findRow("Window"); |
| 28 InspectorTest.assertEquals(true, !!row, "\"Window\" class row"); | 28 InspectorTest.assertEquals(true, !!row, "\"Window\" class row"); |
| 29 InspectorTest.expandRow(row, step1c); | 29 InspectorTest.expandRow(row, step1c); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function step1c(row) | 32 function step1c(row) |
| 33 { | 33 { |
| 34 InspectorTest.assertEquals(1, row.children.length, "single Windo
w object"); | 34 InspectorTest.assertEquals(1, row.children.length, "single Windo
w object"); |
| 35 var windowRow = row.children[0]; | 35 var windowRow = row.children[0]; |
| 36 InspectorTest.assertEquals(true, !!windowRow, "\"Window\" instan
ce row"); | 36 InspectorTest.assertEquals(true, !!windowRow, "\"Window\" instan
ce row"); |
| 37 InspectorTest.expandRow(windowRow, step2); | 37 InspectorTest.expandRow(windowRow, step2); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 </script> | 75 </script> |
| 76 </head> | 76 </head> |
| 77 <body onload="runTest()"> | 77 <body onload="runTest()"> |
| 78 <p> | 78 <p> |
| 79 Tests search in Summary view of detailed heap snapshots. | 79 Tests search in Summary view of detailed heap snapshots. |
| 80 </p> | 80 </p> |
| 81 </body> | 81 </body> |
| 82 </html> | 82 </html> |
| OLD | NEW |