Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / profiler / heap-snapshot-containment-shown-node-count-preserved-when-sorting.html
blob229ed077094441e9f497346f6954f51ea36130a9
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="heap-snapshot-test.js"></script>
5 <script>
7 function test()
9 var instanceCount = 25;
10 function createHeapSnapshot()
12 return InspectorTest.createHeapSnapshot(instanceCount);
15 InspectorTest.runHeapSnapshotTestSuite([
16 function testShownNodeCountPreservedWhenSorting(next)
18 InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, step1);
20 function step1()
22 InspectorTest.switchToView("Containment", step2);
25 var columns;
26 function step2()
28 columns = InspectorTest.viewColumns();
29 InspectorTest.clickColumn(columns[0], step3);
32 function step3()
34 InspectorTest.findAndExpandWindow(step4);
37 function step4(row)
39 var buttonsNode = InspectorTest.findButtonsNode(row);
40 InspectorTest.assertEquals(true, !!buttonsNode, "no buttons node found!");
41 InspectorTest.clickShowMoreButton("showNext", buttonsNode, step5);
44 var nodeCount;
45 function step5(row)
47 // There must be enough nodes to have some unrevealed.
48 var buttonsNode = InspectorTest.findButtonsNode(row);
49 InspectorTest.assertEquals(true, !!buttonsNode, "no buttons node found!");
51 nodeCount = InspectorTest.columnContents(columns[0]).length;
52 InspectorTest.assertEquals(true, nodeCount > 0, "nodeCount > 0");
54 InspectorTest.clickColumn(columns[0], clickTwice);
55 function clickTwice()
57 InspectorTest.clickColumn(columns[0], step6);
61 function step6()
63 var newNodeCount = InspectorTest.columnContents(columns[0]).length;
64 InspectorTest.assertEquals(nodeCount, newNodeCount);
65 setTimeout(next, 0);
68 ]);
71 </script>
72 </head>
73 <body onload="runTest()">
74 <p>
75 Tests Containment view of detailed heap snapshots.
76 Shown node count must be preserved after sorting.
77 </p>
78 </body>
79 </html>