Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: chrome/test/gpu/webgl_infobar_browsertest.cc

Issue 11783078: Remove certain gpu crash tests from gpu_tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/gpu/gpu_crash_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/gpu/webgl_infobar_browsertest.cc
===================================================================
--- chrome/test/gpu/webgl_infobar_browsertest.cc (revision 175856)
+++ chrome/test/gpu/webgl_infobar_browsertest.cc (working copy)
@@ -48,7 +48,7 @@
} // namespace
-class GPUCrashTest : public InProcessBrowserTest {
+class WebGLInfobarTest : public InProcessBrowserTest {
protected:
virtual void SetUpCommandLine(CommandLine* command_line) {
// GPU tests require gpu acceleration.
@@ -63,16 +63,11 @@
FilePath gpu_test_dir_;
};
-IN_PROC_BROWSER_TEST_F(GPUCrashTest, Kill) {
+IN_PROC_BROWSER_TEST_F(WebGLInfobarTest, ContextLossRaisesInfobar) {
// crbug.com/162982, flaky on Mac Retina Release.
if (GPUTestBotConfig::CurrentConfigMatches("MAC NVIDIA 0x0fd5 RELEASE"))
return;
- content::DOMMessageQueue message_queue;
-
- content::GpuDataManager::GetInstance()->
- DisableDomainBlockingFor3DAPIsForTesting();
-
// Load page and wait for it to load.
content::WindowedNotificationObserver observer(
content::NOTIFICATION_LOAD_STOP,
@@ -83,28 +78,6 @@
gpu_test_dir_.AppendASCII("webgl.html"), "query=kill"));
observer.Wait();
- SimulateGPUCrash(browser());
-
- std::string m;
- ASSERT_TRUE(message_queue.WaitForMessage(&m));
- EXPECT_EQ("\"SUCCESS\"", m);
-}
-
-IN_PROC_BROWSER_TEST_F(GPUCrashTest, ContextLossRaisesInfobar) {
- // crbug.com/162982, flaky on Mac Retina Release.
- if (GPUTestBotConfig::CurrentConfigMatches("MAC NVIDIA 0x0fd5 RELEASE"))
- return;
-
- // Load page and wait for it to load.
- content::WindowedNotificationObserver observer(
- content::NOTIFICATION_LOAD_STOP,
- content::NotificationService::AllSources());
- ui_test_utils::NavigateToURL(
- browser(),
- content::GetFileUrlWithQuery(
- gpu_test_dir_.AppendASCII("webgl.html"), "query=kill"));
- observer.Wait();
-
content::WindowedNotificationObserver infobar_added(
chrome::NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED,
content::NotificationService::AllSources());
@@ -115,7 +88,7 @@
chrome::GetActiveWebContents(browser()))->GetInfoBarCount());
}
-IN_PROC_BROWSER_TEST_F(GPUCrashTest, ContextLossInfobarReload) {
+IN_PROC_BROWSER_TEST_F(WebGLInfobarTest, ContextLossInfobarReload) {
// crbug.com/162982, flaky on Mac Retina Release.
if (GPUTestBotConfig::CurrentConfigMatches("MAC NVIDIA 0x0fd5 RELEASE"))
return;
@@ -164,17 +137,3 @@
// There isn't any point in adding a test which calls Accept() on the
// ThreeDAPIInfoBarDelegate; doing so doesn't remove the infobar, and
// there's no concrete event that could be observed in response.
-
-IN_PROC_BROWSER_TEST_F(GPUCrashTest, WebkitLoseContext) {
- content::DOMMessageQueue message_queue;
-
- ui_test_utils::NavigateToURL(
- browser(),
- content::GetFileUrlWithQuery(
- gpu_test_dir_.AppendASCII("webgl.html"),
- "query=WEBGL_lose_context"));
-
- std::string m;
- ASSERT_TRUE(message_queue.WaitForMessage(&m));
- EXPECT_EQ("\"SUCCESS\"", m);
-}
« no previous file with comments | « chrome/test/gpu/gpu_crash_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698