Lines Matching defs:tab

228 // Verify that restored tabs have correct disposition. Only one tab should
235 base::FilePath(FILE_PATH_LITERAL("tab-restore-visibilty.html"))));
257 // The middle tab only should have visible disposition.
287 // Add a single tab.
348 // up with an extra tab.
379 // The browser should only have one tab.
432 // there is no guarantee that the SessionID for the tab has remained the same.
437 const TabRestoreService::Tab& tab = *it;
438 // If this tab held url2, then restore this single tab.
439 if (tab.navigations[0].virtual_url() == url2) {
440 timestamp = tab.navigations[0].timestamp();
441 http_status_code = tab.navigations[0].http_status_code();
443 service->RestoreEntryById(NULL, tab.id, host_desktop_type, UNKNOWN);
453 // Make sure that the restored tab is removed from the service.
459 // Make sure that the restored tab was restored with the correct
476 // Add a single tab.
489 // Expect the window to be converted to a tab by the TRS.
492 const TabRestoreService::Tab* tab =
495 // Restore the tab.
497 service->RestoreEntryById(NULL, tab->id, host_desktop_type, UNKNOWN);
517 // Add a single tab.
534 // The first tab should have 'url' as its url.
574 SessionTab tab;
575 tab.SetFromSyncData(sync_data, base::Time::Now());
576 EXPECT_EQ(2U, tab.navigations.size());
577 for (size_t i = 0; i < tab.navigations.size(); ++i)
578 EXPECT_TRUE(tab.navigations[i].timestamp().is_null());
582 // Restore in the current tab.
589 browser()->tab_strip_model()->GetActiveWebContents(), tab, CURRENT_TAB);
600 // Restore in a new tab.
608 tab, NEW_BACKGROUND_TAB);
628 browser()->tab_strip_model()->GetActiveWebContents(), tab, NEW_WINDOW);
793 // Tests that the SiteInstances used for entries in a restored tab's history
851 // Creates two tabs, closes one, quits and makes sure only one tab is restored.
867 // Ensures active tab properly restored when tabs before it closed.
888 // Ensures active tab properly restored when tabs are inserted before it .
968 // Restart and make sure we have only one window with one tab and the url
979 // of processes running before the restore. This creates a new tab so that
981 // process-per-site and process-per-site-instance, because we treat the new tab
1014 // Create a tab with an overridden user agent.
1020 // Create a tab without an overridden user agent.
1041 // Regression test for crbug.com/125958. When restoring a pinned selected tab in
1043 // wrong, leading to the wrong tab getting selected, DCHECKs firing, and the
1044 // pinned tab not getting loaded.
1046 // Create a pinned tab.
1050 // Create a nonpinned tab.
1055 // Select the pinned tab.
1065 // Close the pinned tab.
1069 // Use the existing tab to navigate away, so that we can verify it was really
1073 // Restore the session again, clobbering the existing tab.
1080 // The pinned tab is the selected tab.
1090 // the navigation should take active tab focus.
1102 // Navigated url should be the active tab.
1107 // Do a clobber restore from the new tab page. This test follows the code path
1108 // of a crash followed by the user clicking restore from the new tab page.
1124 // Close the first tab.
1128 // Use the existing tab to navigate to the NTP.
1131 // Restore the session again, clobbering the existing tab.
1138 // 2 tabs should have been restored, with the existing tab clobbered, giving
1170 // SessionStorageNamespace as an existing tab, then replace the tab with it.
1188 // Navigate with the new tab.