Home | History | Annotate | Download | only in tabs

Lines Matching defs:opener

590   // Opener methods are tested below...
600 // This is a basic test of opener functionality. opener_contents is created
602 // background with opener_contents set as their opener.
605 NavigationController* opener = &opener_contents->controller();
626 // All the tabs should have the same opener.
628 EXPECT_EQ(opener, tabstrip.GetOpenerOfTabContentsAt(i));
631 EXPECT_EQ(2, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 1, false));
634 EXPECT_EQ(4, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 5, false));
636 // Tests the method that finds the last tab opened by the same opener in the
638 // specified opener).
639 EXPECT_EQ(5, tabstrip.GetIndexOfLastTabContentsOpenedBy(opener, 1));
647 // ForgetAllOpeners should destroy all opener relationships.
649 EXPECT_EQ(-1, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 1, false));
650 EXPECT_EQ(-1, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 5, false));
651 EXPECT_EQ(-1, tabstrip.GetIndexOfLastTabContentsOpenedBy(opener, 1));
747 // that this tab is opened adjacent to the opener, then closes it.
756 NavigationController* opener = &opener_contents->controller();
776 // The opener API should work...
777 EXPECT_EQ(3, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 2, false));
778 EXPECT_EQ(2, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 3, false));
779 EXPECT_EQ(3, tabstrip.GetIndexOfLastTabContentsOpenedBy(opener, 1));
782 // opener tab.
793 // Now close this contents. The selection should move to the opener contents.
802 // We break the opener relationship...
805 // Now select it, so that user_gesture == true causes the opener relationship
811 // Verify that all opener relationships are forgotten.
812 EXPECT_EQ(-1, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 2, false));
813 EXPECT_EQ(-1, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 3, false));
814 EXPECT_EQ(-1, tabstrip.GetIndexOfNextTabContentsOpenedBy(opener, 3, false));
815 EXPECT_EQ(-1, tabstrip.GetIndexOfLastTabContentsOpenedBy(opener, 1));
825 // If that tab does not have an opener, selection shifts to the right.
826 // If the tab has an opener,
827 // The next tab (scanning LTR) in the entire strip that has the same opener
829 // If there are no other tabs that have the same opener,
830 // The opener is selected
858 // Now test that when a tab doesn't have an opener, selection shifts to the
876 // Now test that when a tab does have an opener, it selects the next tab
877 // opened by the same opener scanning LTR when it is closed.
888 // Finally test that when a tab has no "siblings" that the opener is
1223 // TabContents in the group before closing the opener or any other
1280 // the opener.
1346 // Tests whether opener state is correctly forgotten when the user switches
1554 // in New Tab". No opener relationship should be preserved between this Tab
1596 // Open page E in a different opener group from page A.
1621 // doesn't cause the opener relationship for a New Tab opened at the end of the
1662 // tab's opener relationship to be forgotten.