| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <deque> | 5 #include <deque> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 OpenDestURLViaClickNewForegroundTab(); | 1825 OpenDestURLViaClickNewForegroundTab(); |
| 1826 } | 1826 } |
| 1827 | 1827 |
| 1828 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderClickNewBackgroundTab) { | 1828 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderClickNewBackgroundTab) { |
| 1829 PrerenderTestURL("files/prerender/prerender_page_with_link.html", | 1829 PrerenderTestURL("files/prerender/prerender_page_with_link.html", |
| 1830 FINAL_STATUS_SESSION_STORAGE_NAMESPACE_MISMATCH, | 1830 FINAL_STATUS_SESSION_STORAGE_NAMESPACE_MISMATCH, |
| 1831 1); | 1831 1); |
| 1832 OpenDestURLViaClickNewBackgroundTab(); | 1832 OpenDestURLViaClickNewBackgroundTab(); |
| 1833 } | 1833 } |
| 1834 | 1834 |
| 1835 // Disabled due to http://crbug.com/105433 |
| 1835 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, | 1836 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, |
| 1836 NavigateToPrerenderedPageWhenDevToolsAttached) { | 1837 DISABLED_NavigateToPrerenderedPageWhenDevToolsAttached) { |
| 1837 DisableJavascriptCalls(); | 1838 DisableJavascriptCalls(); |
| 1838 TabContents* tab_contents = browser()->GetSelectedTabContents(); | 1839 TabContents* tab_contents = browser()->GetSelectedTabContents(); |
| 1839 RenderViewHost* inspected_rvh = tab_contents->render_view_host(); | 1840 RenderViewHost* inspected_rvh = tab_contents->render_view_host(); |
| 1840 DevToolsManager* manager = DevToolsManager::GetInstance(); | 1841 DevToolsManager* manager = DevToolsManager::GetInstance(); |
| 1841 FakeDevToolsClientHost client_host; | 1842 FakeDevToolsClientHost client_host; |
| 1842 manager->RegisterDevToolsClientHostFor(inspected_rvh, &client_host); | 1843 manager->RegisterDevToolsClientHostFor(inspected_rvh, &client_host); |
| 1843 const char* url = "files/prerender/prerender_page.html"; | 1844 const char* url = "files/prerender/prerender_page.html"; |
| 1844 PrerenderTestURL(url, FINAL_STATUS_DEVTOOLS_ATTACHED, 1); | 1845 PrerenderTestURL(url, FINAL_STATUS_DEVTOOLS_ATTACHED, 1); |
| 1845 NavigateToURL(url); | 1846 NavigateToURL(url); |
| 1846 } | 1847 } |
| 1847 | 1848 |
| 1848 // Validate that the sessionStorage namespace remains the same when swapping | 1849 // Validate that the sessionStorage namespace remains the same when swapping |
| 1849 // in a prerendered page. | 1850 // in a prerendered page. |
| 1850 // http://crbug.com/103563 | 1851 // http://crbug.com/103563 |
| 1851 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderSessionStorage) { | 1852 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderSessionStorage) { |
| 1852 set_loader_path("files/prerender/prerender_loader_with_session_storage.html"); | 1853 set_loader_path("files/prerender/prerender_loader_with_session_storage.html"); |
| 1853 PrerenderTestURL(GetCrossDomainTestUrl("files/prerender/prerender_page.html"), | 1854 PrerenderTestURL(GetCrossDomainTestUrl("files/prerender/prerender_page.html"), |
| 1854 FINAL_STATUS_USED, | 1855 FINAL_STATUS_USED, |
| 1855 1); | 1856 1); |
| 1856 NavigateToDestURL(); | 1857 NavigateToDestURL(); |
| 1857 GoBackToPageBeforePrerender(browser()); | 1858 GoBackToPageBeforePrerender(browser()); |
| 1858 } | 1859 } |
| 1859 | 1860 |
| 1860 } // namespace prerender | 1861 } // namespace prerender |
| OLD | NEW |