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

Side by Side Diff: chrome/test/ui/layout_plugin_uitest.cc

Issue 9358065: Flakiness cleanup: disable flaky tests under chrome/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/reliability/automated_ui_test_test.cc ('k') | chrome/test/ui/npapi_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/test/ui/ui_test.h" 5 #include "chrome/test/ui/ui_test.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
(...skipping 30 matching lines...) Expand all
41 EXPECT_EQ(L"Layout Test Plugin Test", title); 41 EXPECT_EQ(L"Layout Test Plugin Test", title);
42 42
43 ASSERT_TRUE(tab->GoBack()); 43 ASSERT_TRUE(tab->GoBack());
44 EXPECT_TRUE(tab->GetTabTitle(&title)); 44 EXPECT_TRUE(tab->GetTabTitle(&title));
45 EXPECT_NE(L"Layout Test Plugin Test", title); 45 EXPECT_NE(L"Layout Test Plugin Test", title);
46 } 46 }
47 47
48 // Tests if a plugin executing a self deleting script using NPN_GetURL 48 // Tests if a plugin executing a self deleting script using NPN_GetURL
49 // works without crashing or hanging 49 // works without crashing or hanging
50 // Flaky: http://crbug.com/59327 50 // Flaky: http://crbug.com/59327
51 TEST_F(LayoutPluginTester, FLAKY_SelfDeletePluginGetUrl) { 51 TEST_F(LayoutPluginTester, DISABLED_SelfDeletePluginGetUrl) {
52 const FilePath test_case(FILE_PATH_LITERAL("self_delete_plugin_geturl.html")); 52 const FilePath test_case(FILE_PATH_LITERAL("self_delete_plugin_geturl.html"));
53 GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case); 53 GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case);
54 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); 54 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
55 WaitForFinish("self_delete_plugin_geturl", "1", url, 55 WaitForFinish("self_delete_plugin_geturl", "1", url,
56 kTestCompleteCookie, kTestCompleteSuccess, 56 kTestCompleteCookie, kTestCompleteSuccess,
57 TestTimeouts::action_max_timeout_ms()); 57 TestTimeouts::action_max_timeout_ms());
58 } 58 }
59 59
60 // Tests if a plugin executing a self deleting script using Invoke 60 // Tests if a plugin executing a self deleting script using Invoke
61 // works without crashing or hanging 61 // works without crashing or hanging
62 // Flaky. See http://crbug.com/30702 62 // Flaky. See http://crbug.com/30702
63 TEST_F(LayoutPluginTester, FLAKY_SelfDeletePluginInvoke) { 63 TEST_F(LayoutPluginTester, DISABLED_SelfDeletePluginInvoke) {
64 const FilePath test_case(FILE_PATH_LITERAL("self_delete_plugin_invoke.html")); 64 const FilePath test_case(FILE_PATH_LITERAL("self_delete_plugin_invoke.html"));
65 GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case); 65 GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case);
66 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); 66 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
67 WaitForFinish("self_delete_plugin_invoke", "1", url, 67 WaitForFinish("self_delete_plugin_invoke", "1", url,
68 kTestCompleteCookie, kTestCompleteSuccess, 68 kTestCompleteCookie, kTestCompleteSuccess,
69 TestTimeouts::action_max_timeout_ms()); 69 TestTimeouts::action_max_timeout_ms());
70 } 70 }
71 71
72 TEST_F(LayoutPluginTester, NPObjectReleasedOnDestruction) { 72 TEST_F(LayoutPluginTester, NPObjectReleasedOnDestruction) {
73 const FilePath test_case( 73 const FilePath test_case(
(...skipping 15 matching lines...) Expand all
89 // the more interesting case is out of process, where we must route 89 // the more interesting case is out of process, where we must route
90 // the exception to the correct renderer. 90 // the exception to the correct renderer.
91 TEST_F(LayoutPluginTester, NPObjectSetException) { 91 TEST_F(LayoutPluginTester, NPObjectSetException) {
92 const FilePath test_case(FILE_PATH_LITERAL("npobject_set_exception.html")); 92 const FilePath test_case(FILE_PATH_LITERAL("npobject_set_exception.html"));
93 GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case); 93 GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case);
94 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); 94 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
95 WaitForFinish("npobject_set_exception", "1", url, 95 WaitForFinish("npobject_set_exception", "1", url,
96 kTestCompleteCookie, kTestCompleteSuccess, 96 kTestCompleteCookie, kTestCompleteSuccess,
97 TestTimeouts::action_max_timeout_ms()); 97 TestTimeouts::action_max_timeout_ms());
98 } 98 }
OLDNEW
« no previous file with comments | « chrome/test/reliability/automated_ui_test_test.cc ('k') | chrome/test/ui/npapi_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698