Lines Matching refs:tab
37 // Uses the undo-close-tab accelerator to undo a close-tab or close-window
38 // operation. The newly restored tab is expected to appear in the
41 // current windows, the restored tab is expected to be created in a new
63 // Restore the tab.
78 // Get a handle to the restored tab.
84 // Wait for the restored tab to finish loading.
88 // Ensure that the tab and window are active.
138 // Close the end tab in the current window, then restore it. The tab should be
153 // Close the tab.
168 // Close a tab not at the end of the current window, then restore it. The tab
184 // Close the tab.
199 // Close a tab, switch windows, then restore the tab. The tab should be in its
220 // Close the tab.
234 // Restore tab into original browser.
245 // Close a tab, open a new window, close the first window, then restore the
246 // tab. It should be in a new window.
276 // Close the final tab in the first browser.
280 // Tab and browser are no longer valid.
286 // Tab should be in a new window.
298 // Restore a tab then make sure it doesn't restore again.
330 // Open a window with multiple tabs, close a tab, then close the window.
331 // Restore both and make sure the tab goes back into the window.
347 // Close the tab.
371 // indicates the expected active tab.
379 // Restore the closed tab.
410 // Close all but one tab in the first browser, left to right.
418 // Close the last tab, closing the browser.
426 // Restore the last-closed tab into a new window.
435 // Restore the next-to-last-closed tab into the same window.
458 // Add a tab
463 scoped_refptr<TabProxy> tab(browser_proxy->GetTab(tab_count - 1));
464 ASSERT_TRUE(tab.get());
467 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(http_url2));
469 // Close the tab.
470 ASSERT_TRUE(tab->Close(true));
471 tab = NULL;
473 // Create a new tab to the original site. Assuming process-per-site is
474 // enabled, this will ensure that the SiteInstance used by the restored tab
478 // Restore the closed tab.
480 tab = browser_proxy->GetActiveTab();
481 ASSERT_TRUE(tab.get());
485 EXPECT_TRUE(tab->GoBack());
489 // Tests that the SiteInstances used for entries in a restored tab's history
505 // Add a tab
510 scoped_refptr<TabProxy> tab(browser_proxy->GetTab(tab_count - 1));
511 ASSERT_TRUE(tab.get());
514 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(http_url2));
515 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(http_url1));
516 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(url1_));
518 // Close the tab.
519 ASSERT_TRUE(tab->Close(true));
520 tab = NULL;
522 // Create a new tab to the original site. Assuming process-per-site is
524 // the user clicks Back in the restored tab.
527 // Restore the closed tab.
529 tab = browser_proxy->GetActiveTab();
530 ASSERT_TRUE(tab.get());
534 EXPECT_TRUE(tab->GoBack());
538 // page ID of the renderer should have been updated when we restored the tab.
539 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(http_url2));
540 EXPECT_FALSE(tab->GoForward());
605 // Restore tab with special URL about:credits and make sure the page loads
612 // Navigate new tab to a special URL.
615 scoped_refptr<TabProxy> tab(browser->GetActiveTab());
616 ASSERT_TRUE(tab.get());
618 // Close the tab.
619 ASSERT_TRUE(tab->Close(true));
621 // Restore the closed tab.
623 tab = browser->GetTab(1);
624 ASSERT_TRUE(tab.get());
625 ASSERT_TRUE(tab->WaitForTabToBeRestored(TestTimeouts::action_timeout_ms()));
628 EXPECT_TRUE(tab->FindInPage(std::wstring(L"webkit"), FWD, IGNORE_CASE, false,
632 // Restore tab with special URL in its navigation history, go back to that
645 // Navigate new tab to a special URL.
648 scoped_refptr<TabProxy> tab(browser->GetActiveTab());
649 ASSERT_TRUE(tab.get());
652 ASSERT_TRUE(tab->NavigateToURL(http_url));
654 // Close the tab.
655 ASSERT_TRUE(tab->Close(true));
657 // Restore the closed tab.
659 tab = browser->GetTab(1);
660 ASSERT_TRUE(tab.get());
661 ASSERT_TRUE(tab->WaitForTabToBeRestored(TestTimeouts::action_timeout_ms()));
663 ASSERT_TRUE(tab->GetCurrentURL(&url));
667 ASSERT_TRUE(tab->GoBack());
668 EXPECT_TRUE(tab->FindInPage(std::wstring(L"webkit"), FWD, IGNORE_CASE, false,