Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-dominators-sorting.html

Issue 352603003: DevTools: Nuke Dominators view from heap profiler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/profiler/heap-snapshot-dominators-sorting.html
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-dominators-sorting.html b/LayoutTests/inspector/profiler/heap-snapshot-dominators-sorting.html
deleted file mode 100644
index 79af412af163e64bc74482759b3fb2b8308d9a64..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/heap-snapshot-dominators-sorting.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<html>
-<head>
- <script src="../../http/tests/inspector/inspector-test.js"></script>
- <script src="heap-snapshot-test.js"></script>
-<script>
-
-function test()
-{
- var instanceCount = 25;
- function createHeapSnapshot()
- {
- return InspectorTest.createHeapSnapshot(instanceCount);
- }
-
- InspectorTest.runHeapSnapshotTestSuite([
- function testSorting(next)
- {
- InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, step1);
-
- function step1()
- {
- InspectorTest.switchToView("Dominators", step2);
- }
-
- var gcRoots;
- var columns;
- var currentColumn;
- var currentColumnOrder;
-
- function step2()
- {
- InspectorTest.findAndExpandWindow(step3);
- }
-
- function step3(gcRootsRow)
- {
- gcRoots = gcRootsRow;
- columns = InspectorTest.viewColumns();
- currentColumn = 0;
- currentColumnOrder = false;
- setTimeout(step4, 0);
- }
-
- function step4()
- {
- if (currentColumn >= columns.length) {
- setTimeout(next, 0);
- return;
- }
-
- InspectorTest.clickColumn(columns[currentColumn], step5);
- }
-
- function step5(newColumnState)
- {
- columns[currentColumn] = newColumnState;
- var contents = InspectorTest.columnContents(columns[currentColumn], gcRoots);
- InspectorTest.assertEquals(true, !!contents.length, "column contents");
- var sortTypes = { object: "id", shallowSize: "size", retainedSize: "size" };
- InspectorTest.assertEquals(true, !!sortTypes[columns[currentColumn].identifier], "sort by identifier");
- InspectorTest.checkArrayIsSorted(contents, sortTypes[columns[currentColumn].identifier], columns[currentColumn].sort);
-
- if (!currentColumnOrder)
- currentColumnOrder = true;
- else {
- currentColumnOrder = false;
- ++currentColumn;
- }
- setTimeout(step4, 0);
- }
- }
- ]);
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<p>
-Tests sorting in Dominators view of detailed heap snapshots.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698