Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / profiler / heap-snapshot-containment-expansion-preserved-when-sorting.html
blob22cdd862eeb24abdb6ddab5192a291567e21999b
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 testExpansionPreservedWhenSorting(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("showAll", buttonsNode, step5);
44 function step5(row)
46 var row = row.children[0];
47 InspectorTest.assertEquals(true, !!row, "\"B\" instance row");
48 InspectorTest.expandRow(row, expandA);
49 function expandA(row)
51 function propertyMatcher(data)
53 return data._referenceName === "a" && data._name.charAt(0) === "A";
55 var aRow = InspectorTest.findMatchingRow(propertyMatcher, row);
56 InspectorTest.assertEquals(true, !!aRow, "\"a: A\" row");
57 InspectorTest.expandRow(aRow, step6);
61 var columnContents;
62 function step6()
64 columnContents = InspectorTest.columnContents(columns[0]);
65 InspectorTest.clickColumn(columns[0], clickTwice);
66 function clickTwice()
68 InspectorTest.clickColumn(columns[0], step7);
72 function step7()
74 var newColumnContents = InspectorTest.columnContents(columns[0]);
75 InspectorTest.assertColumnContentsEqual(columnContents, newColumnContents);
76 setTimeout(next, 0);
79 ]);
82 </script>
83 </head>
84 <body onload="runTest()">
85 <p>
86 Tests Containment view of detailed heap snapshots.
87 Expanded nodes must be preserved after sorting.
88 </p>
89 </body>
90 </html>