Lines Matching refs:stack2
704 StackedPanelCollection* stack2 = panel_manager->CreateStack();
705 CreateStackedPanel("3", gfx::Rect(100, 50, 200, 150), stack2);
706 CreateStackedPanel("4", gfx::Rect(0, 0, 150, 100), stack2);
707 CreateStackedPanel("5", gfx::Rect(0, 0, 250, 120), stack2);
710 ASSERT_EQ(3, stack2->num_panels());
712 // Create new panel. Expect that it will append to stack2 since it has most
720 EXPECT_EQ(4, stack2->num_panels());
721 EXPECT_TRUE(stack2->HasPanel(new_panel));
722 EXPECT_TRUE(new_panel == stack2->bottom_panel());
740 StackedPanelCollection* stack2 = panel_manager->CreateStack();
741 CreateStackedPanel("3", gfx::Rect(200, 50, 200, 150), stack2);
742 CreateStackedPanel("4", gfx::Rect(0, 0, 150, 100), stack2);
745 ASSERT_EQ(2, stack2->num_panels());
747 // Create new panel. Both stack1 and stack2 have same number of panels. Since
748 // stack2 is right-most, new panel will be added to it.
755 EXPECT_EQ(3, stack2->num_panels());
756 EXPECT_TRUE(stack2->HasPanel(new_panel));
757 EXPECT_TRUE(new_panel == stack2->bottom_panel());
775 StackedPanelCollection* stack2 = panel_manager->CreateStack();
776 CreateStackedPanel("3", gfx::Rect(100, 50, 200, 150), stack2);
777 CreateStackedPanel("4", gfx::Rect(0, 0, 150, 100), stack2);
780 ASSERT_EQ(2, stack2->num_panels());
782 // Create new panel. Both stack1 and stack2 have same number of panels and
783 // same right position. Since stack2 is top-most, new panel will be added to
791 EXPECT_EQ(3, stack2->num_panels());
792 EXPECT_TRUE(stack2->HasPanel(new_panel));
793 EXPECT_TRUE(new_panel == stack2->bottom_panel());
1018 StackedPanelCollection* stack2 = panel_manager->stacks().back();
1019 EXPECT_TRUE(stack2->HasPanel(panel3));
1020 EXPECT_TRUE(stack2->HasPanel(panel4));
1040 EXPECT_TRUE(stack2->HasPanel(panel6));
1084 StackedPanelCollection* stack2 = panel_manager->stacks().back();
1085 EXPECT_TRUE(stack2->HasPanel(panel3));
1086 EXPECT_TRUE(stack2->HasPanel(panel4));
1108 EXPECT_TRUE(stack2->HasPanel(panel6));