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

Side by Side Diff: LayoutTests/inspector/profiler/heap-snapshot-dominators-show-next.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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="heap-snapshot-test.js"></script>
5 <script>
6
7 function test()
8 {
9 var instanceCount = 25;
10 function createHeapSnapshot()
11 {
12 return InspectorTest.createHeapSnapshot(instanceCount);
13 }
14
15 InspectorTest.runHeapSnapshotTestSuite([
16 function testShowNext(next)
17 {
18 InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, step1);
19
20 function step1()
21 {
22 InspectorTest.switchToView("Dominators", step2);
23 }
24
25 function step2()
26 {
27 InspectorTest.findAndExpandRow("Window", step3);
28 }
29
30 function step3(row)
31 {
32 var rowsShown = InspectorTest.countDataRows(row);
33 InspectorTest.assertEquals(true, rowsShown <= instanceCount, "sh own more instances than created: " + rowsShown + " > " + instanceCount);
34 if (rowsShown < instanceCount) {
35 var buttonsNode = InspectorTest.findButtonsNode(row);
36 InspectorTest.assertEquals(true, !!buttonsNode, "buttons nod e");
37 InspectorTest.clickShowMoreButton("showNext", buttonsNode, s tep3);
38 } else if (rowsShown === instanceCount) {
39 var buttonsNode = InspectorTest.findButtonsNode(row);
40 InspectorTest.assertEquals(false, !!buttonsNode, "buttons no de found when all instances are shown!");
41 setTimeout(next, 0);
42 }
43 }
44 }
45 ]);
46 }
47
48 </script>
49 </head>
50 <body onload="runTest()">
51 <p>
52 Tests Dominators view of detailed heap snapshots.
53 Repeated clicks on &quot;Show Next&quot; button must show all nodes.
54 </p>
55 </body>
56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698