summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 02:29:53 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 02:29:53 +0000
commit99d81e5b17ea11dd11be5cd88ae8446347ebab8c (patch)
treea862d90d8e4cb881f6b5522637e92214b81c78ff /chrome_frame/test
parentdc8e66456af280e6d5c14ebd195e115fbe0b016c (diff)
downloadchromium_src-99d81e5b17ea11dd11be5cd88ae8446347ebab8c.zip
chromium_src-99d81e5b17ea11dd11be5cd88ae8446347ebab8c.tar.gz
chromium_src-99d81e5b17ea11dd11be5cd88ae8446347ebab8c.tar.bz2
Remove 1) NPAPI support from Chrome Frame and 2) Firefox/Opera/Safari tests.
BUG=none TEST=automated testing should suffice R=ananta@chromium.org,robertshield@chromium.org Review URL: http://codereview.chromium.org/7276037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test')
-rw-r--r--chrome_frame/test/chrome_frame_test_utils.cc21
-rw-r--r--chrome_frame/test/chrome_frame_test_utils.h6
-rw-r--r--chrome_frame/test/test_with_web_server.cc281
-rw-r--r--chrome_frame/test/test_with_web_server.h16
4 files changed, 2 insertions, 322 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc
index 2270e32..3975c70 100644
--- a/chrome_frame/test/chrome_frame_test_utils.cc
+++ b/chrome_frame/test/chrome_frame_test_utils.cc
@@ -45,9 +45,6 @@ const int kCrashServiceStartupTimeoutMs = 500;
const wchar_t kIEImageName[] = L"iexplore.exe";
const wchar_t kIEBrokerImageName[] = L"ieuser.exe";
-const wchar_t kFirefoxImageName[] = L"firefox.exe";
-const wchar_t kOperaImageName[] = L"opera.exe";
-const wchar_t kSafariImageName[] = L"safari.exe";
const char kChromeImageName[] = "chrome.exe";
const wchar_t kIEProfileName[] = L"iexplore";
const wchar_t kChromeLauncher[] = L"chrome_launcher.exe";
@@ -176,14 +173,6 @@ base::ProcessHandle LaunchExecutable(const std::wstring& executable,
return process;
}
-base::ProcessHandle LaunchFirefox(const std::wstring& url) {
- return LaunchExecutable(kFirefoxImageName, url);
-}
-
-base::ProcessHandle LaunchSafari(const std::wstring& url) {
- return LaunchExecutable(kSafariImageName, url);
-}
-
base::ProcessHandle LaunchChrome(const std::wstring& url) {
FilePath path;
PathService::Get(base::DIR_MODULE, &path);
@@ -198,16 +187,6 @@ base::ProcessHandle LaunchChrome(const std::wstring& url) {
return process;
}
-base::ProcessHandle LaunchOpera(const std::wstring& url) {
- // NOTE: For Opera tests to work it must be configured to start up with
- // a blank page. There is an command line switch, -nosession, that's supposed
- // to avoid opening up the previous session, but that switch is not working.
- // TODO(tommi): Include a special ini file (opera6.ini) for opera and launch
- // with our required settings. This file is by default stored here:
- // "%USERPROFILE%\Application Data\Opera\Opera\profile\opera6.ini"
- return LaunchExecutable(kOperaImageName, url);
-}
-
base::ProcessHandle LaunchIEOnVista(const std::wstring& url) {
typedef HRESULT (WINAPI* IELaunchURLPtr)(
const wchar_t* url,
diff --git a/chrome_frame/test/chrome_frame_test_utils.h b/chrome_frame/test/chrome_frame_test_utils.h
index a34e0a8..a93af2f 100644
--- a/chrome_frame/test/chrome_frame_test_utils.h
+++ b/chrome_frame/test/chrome_frame_test_utils.h
@@ -39,10 +39,7 @@ namespace chrome_frame_test {
int CloseVisibleWindowsOnAllThreads(HANDLE process);
-base::ProcessHandle LaunchFirefox(const std::wstring& url);
-base::ProcessHandle LaunchOpera(const std::wstring& url);
base::ProcessHandle LaunchIE(const std::wstring& url);
-base::ProcessHandle LaunchSafari(const std::wstring& url);
base::ProcessHandle LaunchChrome(const std::wstring& url);
// Attempts to close all open IE windows.
@@ -54,9 +51,6 @@ int CloseAllIEWindows();
extern const wchar_t kIEImageName[];
extern const wchar_t kIEBrokerImageName[];
-extern const wchar_t kFirefoxImageName[];
-extern const wchar_t kOperaImageName[];
-extern const wchar_t kSafariImageName[];
extern const char kChromeImageName[];
extern const wchar_t kChromeLauncher[];
extern const int kChromeFrameLongNavigationTimeoutInSeconds;
diff --git a/chrome_frame/test/test_with_web_server.cc b/chrome_frame/test/test_with_web_server.cc
index c759815..bc08e88 100644
--- a/chrome_frame/test/test_with_web_server.cc
+++ b/chrome_frame/test/test_with_web_server.cc
@@ -80,8 +80,6 @@ void ChromeFrameTestWithWebServer::CloseAllBrowsers() {
// instances, so make really sure browsers are dead.
base::KillProcesses(chrome_frame_test::kIEImageName, 0, NULL);
base::KillProcesses(chrome_frame_test::kIEBrokerImageName, 0, NULL);
- base::KillProcesses(chrome_frame_test::kFirefoxImageName, 0, NULL);
- base::KillProcesses(chrome_frame_test::kSafariImageName, 0, NULL);
// Endeavour to only kill off Chrome Frame derived Chrome processes.
KillAllNamedProcessesWithArgument(
@@ -129,10 +127,6 @@ void ChromeFrameTestWithWebServer::SetUp() {
}
void ChromeFrameTestWithWebServer::TearDown() {
- // Make sure that the Firefox privilege mode is never forced either on or off
- // after the test completes.
- DeleteConfigValue(kEnableFirefoxPrivilegeMode);
-
CloseBrowser();
CloseAllBrowsers();
file_util::Delete(CFInstall_path_, false);
@@ -152,12 +146,6 @@ bool ChromeFrameTestWithWebServer::LaunchBrowser(BrowserKind browser,
browser_ = browser;
if (browser == IE) {
browser_handle_.Set(chrome_frame_test::LaunchIE(url));
- } else if (browser == FIREFOX) {
- browser_handle_.Set(chrome_frame_test::LaunchFirefox(url));
- } else if (browser == OPERA) {
- browser_handle_.Set(chrome_frame_test::LaunchOpera(url));
- } else if (browser == SAFARI) {
- browser_handle_.Set(chrome_frame_test::LaunchSafari(url));
} else if (browser == CHROME) {
browser_handle_.Set(chrome_frame_test::LaunchChrome(url));
} else {
@@ -228,35 +216,11 @@ void ChromeFrameTestWithWebServer::SimpleBrowserTestExpectedResult(
void ChromeFrameTestWithWebServer::SimpleBrowserTest(BrowserKind browser,
const wchar_t* page) {
- if (browser == FIREFOX &&
- base::win::GetVersion() == base::win::VERSION_WIN7) {
- LOG(INFO) << "Not running Firefox tests on Windows 7";
- return;
- }
SimpleBrowserTestExpectedResult(browser, page, "OK");
}
-void ChromeFrameTestWithWebServer::OptionalBrowserTest(BrowserKind browser,
- const wchar_t* page) {
- DCHECK(browser != CHROME) << "Chrome tests shouldn't be optional";
- if (!LaunchBrowser(browser, page)) {
- LOG(ERROR) << "Failed to launch browser " << ToString(browser);
- } else {
- server_mock_.ExpectAndHandlePostedResult(CFInvocation(CFInvocation::NONE),
- kPostedResultSubstring);
- WaitForTestToComplete(TestTimeouts::action_max_timeout_ms());
- ASSERT_EQ("OK", server_mock_.posted_result());
- }
-}
-
void ChromeFrameTestWithWebServer::VersionTest(BrowserKind browser,
const wchar_t* page) {
- if (browser == FIREFOX &&
- base::win::GetVersion() == base::win::VERSION_WIN7) {
- LOG(INFO) << "Not running Firefox tests on Windows 7";
- return;
- }
-
FilePath plugin_path;
PathService::Get(base::DIR_MODULE, &plugin_path);
plugin_path = plugin_path.AppendASCII("servers");
@@ -410,15 +374,6 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_PostMessageBasic) {
SimpleBrowserTest(IE, kPostMessageBasicPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_PostMessageBasic) {
- SimpleBrowserTest(FIREFOX, kPostMessageBasicPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_PostMessageBasic) {
- OptionalBrowserTest(OPERA, kPostMessageBasicPage);
-}
-
TEST_F(ChromeFrameTestWithWebServer, FullTabIE_MIMEFilterBasic) {
const wchar_t kMIMEFilterBasicPage[] =
L"chrome_frame_mime_filter_test.html";
@@ -436,14 +391,6 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_Resize) {
SimpleBrowserTest(IE, L"chrome_frame_resize.html");
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_Resize) {
- SimpleBrowserTest(FIREFOX, L"chrome_frame_resize.html");
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_Resize) {
- OptionalBrowserTest(OPERA, L"chrome_frame_resize.html");
-}
-
const wchar_t kNavigateURLAbsolutePage[] =
L"navigateurl_absolute_host.html";
@@ -451,16 +398,6 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_NavigateURLAbsolute) {
SimpleBrowserTest(IE, kNavigateURLAbsolutePage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_NavigateURLAbsolute) {
- SimpleBrowserTest(FIREFOX, kNavigateURLAbsolutePage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_NavigateURLAbsolute) {
- OptionalBrowserTest(OPERA, kNavigateURLAbsolutePage);
-}
-
const wchar_t kNavigateURLRelativePage[] =
L"navigateurl_relative_host.html";
@@ -468,113 +405,42 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_NavigateURLRelative) {
SimpleBrowserTest(IE, kNavigateURLRelativePage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_NavigateURLRelative) {
- SimpleBrowserTest(FIREFOX, kNavigateURLRelativePage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_NavigateURLRelative) {
- OptionalBrowserTest(OPERA, kNavigateURLRelativePage);
-}
-
const wchar_t kNavigateSimpleObjectFocus[] = L"simple_object_focus.html";
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_ObjectFocus) {
- SimpleBrowserTest(FIREFOX, kNavigateSimpleObjectFocus);
-}
-
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_ObjectFocus) {
SimpleBrowserTest(IE, kNavigateSimpleObjectFocus);
}
-// TODO(ananta)
-// Rewrite this test for opera.
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_ObjectFocus) {
- if (!LaunchBrowser(OPERA, kNavigateSimpleObjectFocus)) {
- LOG(ERROR) << "Failed to launch browser " << ToString(OPERA);
- } else {
- ASSERT_TRUE(WaitForOnLoad(TestTimeouts::action_max_timeout_ms()));
- server_mock_.ExpectAndHandlePostedResult(CFInvocation(CFInvocation::NONE),
- kPostedResultSubstring);
- BringBrowserToTop();
- // Tab through a couple of times. Once should be enough in theory
- // but in practice activating the browser can take a few milliseconds more.
- bool ok;
- for (int i = 0;
- i < 5 && (ok = (server_mock_.posted_result() == "OK")) == false;
- ++i) {
- Sleep(300);
- simulate_input::SendMnemonic(VK_TAB, simulate_input::NONE, false, false);
- }
- ASSERT_TRUE(ok);
- }
-}
-
const wchar_t kiframeBasicPage[] = L"iframe_basic_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_iframeBasic) {
SimpleBrowserTest(IE, kiframeBasicPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_iframeBasic) {
- SimpleBrowserTest(FIREFOX, kiframeBasicPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_iframeBasic) {
- OptionalBrowserTest(OPERA, kiframeBasicPage);
-}
-
const wchar_t kSrcPropertyTestPage[] = L"src_property_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_SrcProperty) {
SimpleBrowserTest(IE, kSrcPropertyTestPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_SrcProperty) {
- SimpleBrowserTest(FIREFOX, kSrcPropertyTestPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_SrcProperty) {
- OptionalBrowserTest(OPERA, kSrcPropertyTestPage);
-}
-
const wchar_t kCFInstanceBasicTestPage[] = L"CFInstance_basic_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceBasic) {
SimpleBrowserTest(IE, kCFInstanceBasicTestPage);
}
-// http://crbug.com/37085
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_CFInstanceBasic) {
- SimpleBrowserTest(FIREFOX, kCFInstanceBasicTestPage);
-}
-
const wchar_t kCFISingletonPage[] = L"CFInstance_singleton_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceSingleton) {
SimpleBrowserTest(IE, kCFISingletonPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceSingleton) {
- SimpleBrowserTest(FIREFOX, kCFISingletonPage);
-}
-
const wchar_t kCFIDelayPage[] = L"CFInstance_delay_host.html";
TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeIE_CFInstanceDelay) {
SimpleBrowserTest(IE, kCFIDelayPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_CFInstanceDelay) {
- SimpleBrowserTest(FIREFOX, kCFIDelayPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_CFInstanceDelay) {
- OptionalBrowserTest(OPERA, kCFIDelayPage);
-}
-
const wchar_t kCFIFallbackPage[] = L"CFInstance_fallback_host.html";
// http://crbug.com/37088
@@ -582,31 +448,12 @@ TEST_F(ChromeFrameTestWithWebServer, FLAKY_WidgetModeIE_CFInstanceFallback) {
SimpleBrowserTest(IE, kCFIFallbackPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceFallback) {
- SimpleBrowserTest(FIREFOX, kCFIFallbackPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_CFInstanceFallback) {
- OptionalBrowserTest(OPERA, kCFIFallbackPage);
-}
-
const wchar_t kCFINoSrcPage[] = L"CFInstance_no_src_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceNoSrc) {
SimpleBrowserTest(IE, kCFINoSrcPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_CFInstanceNoSrc) {
- SimpleBrowserTest(FIREFOX, kCFINoSrcPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_CFInstanceNoSrc) {
- OptionalBrowserTest(OPERA, kCFINoSrcPage);
-}
-
const wchar_t kCFIIfrOnLoadPage[] = L"CFInstance_iframe_onload_host.html";
// disabled since it's unlikely that we care about this case
@@ -615,32 +462,12 @@ TEST_F(ChromeFrameTestWithWebServer,
SimpleBrowserTest(IE, kCFIIfrOnLoadPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceIfrOnLoad) {
- SimpleBrowserTest(FIREFOX, kCFIIfrOnLoadPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_CFInstanceIfrOnLoad) {
- OptionalBrowserTest(OPERA, kCFIIfrOnLoadPage);
-}
-
const wchar_t kCFIZeroSizePage[] = L"CFInstance_zero_size_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceZeroSize) {
SimpleBrowserTest(IE, kCFIZeroSizePage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceZeroSize) {
- SimpleBrowserTest(FIREFOX, kCFIZeroSizePage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_CFInstanceZeroSize) {
- OptionalBrowserTest(OPERA, kCFIZeroSizePage);
-}
-
const wchar_t kCFIIfrPostPage[] = L"CFInstance_iframe_post_host.html";
// http://crbug.com/32321
@@ -648,26 +475,10 @@ TEST_F(ChromeFrameTestWithWebServer, FLAKY_WidgetModeIE_CFInstanceIfrPost) {
SimpleBrowserTest(IE, kCFIIfrPostPage);
}
-// Flakes out on the bots, http://crbug.com/26372
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceIfrPost) {
- SimpleBrowserTest(FIREFOX, kCFIIfrPostPage);
-}
-
TEST_F(ChromeFrameTestWithWebServer, WidgetModeChrome_CFInstanceIfrPost) {
SimpleBrowserTest(CHROME, kCFIIfrPostPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeSafari_CFInstanceIfrPost) {
- OptionalBrowserTest(SAFARI, kCFIIfrPostPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_CFInstanceIfrPost) {
- OptionalBrowserTest(OPERA, kCFIIfrPostPage);
-}
-
const wchar_t kCFIPostPage[] = L"CFInstance_post_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstancePost) {
@@ -679,24 +490,10 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstancePost) {
}
// This test randomly fails on the ChromeFrame builder.
-// Bug http://code.google.com/p/chromium/issues/detail?id=31532
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_CFInstancePost) {
- SimpleBrowserTest(FIREFOX, kCFIPostPage);
-}
-
TEST_F(ChromeFrameTestWithWebServer, WidgetModeChrome_CFInstancePost) {
SimpleBrowserTest(CHROME, kCFIPostPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeSafari_CFInstancePost) {
- OptionalBrowserTest(SAFARI, kCFIPostPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_CFInstancePost) {
- OptionalBrowserTest(OPERA, kCFIPostPage);
-}
-
const wchar_t kCFIRPCPage[] = L"CFInstance_rpc_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceRPC) {
@@ -707,24 +504,10 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceRPC) {
SimpleBrowserTest(IE, kCFIRPCPage);
}
-// This test randomly fails on the ChromeFrame builder.
-// Bug http://code.google.com/p/chromium/issues/detail?id=31532
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_CFInstanceRPC) {
- SimpleBrowserTest(FIREFOX, kCFIRPCPage);
-}
-
TEST_F(ChromeFrameTestWithWebServer, WidgetModeChrome_CFInstanceRPC) {
SimpleBrowserTest(CHROME, kCFIRPCPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeSafari_CFInstanceRPC) {
- OptionalBrowserTest(SAFARI, kCFIRPCPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_CFInstanceRPC) {
- OptionalBrowserTest(OPERA, kCFIRPCPage);
-}
-
const wchar_t kCFIRPCInternalPage[] =
L"CFInstance_rpc_internal_host.html";
@@ -736,21 +519,10 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceRPCInternal) {
SimpleBrowserTest(IE, kCFIRPCInternalPage);
}
-// http://code.google.com/p/chromium/issues/detail?id=37204
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceRPCInternal) {
- SimpleBrowserTest(FIREFOX, kCFIRPCInternalPage);
-}
-
TEST_F(ChromeFrameTestWithWebServer, WidgetModeChrome_CFInstanceRPCInternal) {
SimpleBrowserTest(CHROME, kCFIRPCInternalPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeSafari_CFInstanceRPCInternal) {
- OptionalBrowserTest(SAFARI, kCFIRPCInternalPage);
-}
-
const wchar_t kCFIDefaultCtorPage[] =
L"CFInstance_default_ctor_host.html";
@@ -758,11 +530,6 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_CFInstanceDefaultCtor) {
SimpleBrowserTest(IE, kCFIDefaultCtorPage);
}
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_CFInstanceDefaultCtor) {
- SimpleBrowserTest(FIREFOX, kCFIDefaultCtorPage);
-}
-
const wchar_t kCFInstallBasicTestPage[] = L"CFInstall_basic.html";
TEST_F(ChromeFrameTestWithWebServer, FullTabIE_CFInstallBasic) {
@@ -813,61 +580,24 @@ TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_CFHttpHeaderFrameSet) {
SimpleBrowserTest(IE, kFullTabHttpHeaderPageFrameset);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_InitializeHidden) {
- SimpleBrowserTest(FIREFOX, kInitializeHiddenPage);
-}
-
-// Disabled due to a problem with Opera.
-// http://b/issue?id=1708275
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeOpera_InitializeHidden) {
- OptionalBrowserTest(OPERA, kInitializeHiddenPage);
-}
-
-const wchar_t kInHeadPage[] = L"in_head.html";
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_InHead) {
- SimpleBrowserTest(FIREFOX, kInHeadPage);
-}
-
const wchar_t kVersionPage[] = L"version.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_Version) {
VersionTest(IE, kVersionPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_Version) {
- VersionTest(FIREFOX, kVersionPage);
-}
-
const wchar_t kEventListenerPage[] = L"event_listener.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_EventListener) {
SimpleBrowserTest(IE, kEventListenerPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_EventListener) {
- SimpleBrowserTest(FIREFOX, kEventListenerPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_EventListener) {
- OptionalBrowserTest(OPERA, kEventListenerPage);
-}
-
const wchar_t kPrivilegedApisPage[] = L"privileged_apis_host.html";
TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_PrivilegedApis) {
SimpleBrowserTest(IE, kPrivilegedApisPage);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeFF_PrivilegedApis) {
- SimpleBrowserTest(FIREFOX, kPrivilegedApisPage);
-}
-
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_WidgetModeOpera_PrivilegedApis) {
- OptionalBrowserTest(OPERA, kPrivilegedApisPage);
-}
-
const wchar_t kMetaTagPage[] = L"meta_tag.html";
TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_MetaTag) {
SimpleBrowserTest(IE, kMetaTagPage);
@@ -948,13 +678,6 @@ TEST_F(ChromeFrameTestWithWebServer, WidgetModeIE_MultipleCFInstances) {
SimpleBrowserTest(IE, kMultipleCFInstancesTestUrl);
}
-// TODO(ananta)
-// Disabled until I figure out why this does not work on Firefox.
-TEST_F(ChromeFrameTestWithWebServer,
- DISABLED_WidgetModeFF_MultipleCFInstances) {
- SimpleBrowserTest(FIREFOX, kMultipleCFInstancesTestUrl);
-}
-
const wchar_t kXHRHeaderTestUrl[] =
L"xmlhttprequest_header_test.html";
@@ -1060,10 +783,6 @@ TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_WindowClose) {
SimpleBrowserTest(IE, kWindowCloseTestUrl);
}
-TEST_F(ChromeFrameTestWithWebServer, DISABLED_FullTabModeFF_WindowClose) {
- SimpleBrowserTest(FIREFOX, kWindowCloseTestUrl);
-}
-
std::string GetHeaderValue(const std::string& headers,
const char* header_name) {
net::HttpUtil::HeadersIterator it(headers.begin(), headers.end(),
diff --git a/chrome_frame/test/test_with_web_server.h b/chrome_frame/test/test_with_web_server.h
index 59e9e2c..ce86117 100644
--- a/chrome_frame/test/test_with_web_server.h
+++ b/chrome_frame/test/test_with_web_server.h
@@ -140,7 +140,7 @@ class MockWebServer : public test_server::HTTPTestServer {
// Class that:
// 1) Starts the local webserver,
-// 2) Supports launching browsers - Internet Explorer and Firefox with local url
+// 2) Supports launching browsers - Internet Explorer with local url
// 3) Wait the webserver to finish. It is supposed the test webpage to shutdown
// the server by navigating to "kill" page
// 4) Supports read the posted results from the test webpage to the "dump"
@@ -150,7 +150,7 @@ class ChromeFrameTestWithWebServer: public testing::Test {
ChromeFrameTestWithWebServer();
protected:
- enum BrowserKind { INVALID, IE, FIREFOX, OPERA, SAFARI, CHROME };
+ enum BrowserKind { INVALID, IE, CHROME };
bool LaunchBrowser(BrowserKind browser, const wchar_t* url);
bool WaitForTestToComplete(int milliseconds);
@@ -167,12 +167,6 @@ class ChromeFrameTestWithWebServer: public testing::Test {
const wchar_t* page, const char* result);
void SimpleBrowserTest(BrowserKind browser, const wchar_t* page);
- // Same as SimpleBrowserTest but if the browser isn't installed (LaunchBrowser
- // fails), the function will print out a warning but not treat the test
- // as failed.
- // Currently this is how we run Opera tests.
- void OptionalBrowserTest(BrowserKind browser, const wchar_t* page);
-
// Test if chrome frame correctly reports its version.
void VersionTest(BrowserKind browser, const wchar_t* page);
@@ -196,14 +190,8 @@ class ChromeFrameTestWithWebServer: public testing::Test {
switch (kind) {
case IE:
return "IE";
- case FIREFOX:
- return "Firefox";
- case OPERA:
- return "Opera";
case CHROME:
return "Chrome";
- case SAFARI:
- return "Safari";
default:
NOTREACHED();
break;