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

Side by Side Diff: chrome/test/automation/dom_automation_browsertest.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
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 "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "base/string_number_conversions.h" 6 #include "base/string_number_conversions.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/test/automation/dom_element_proxy.h" 8 #include "chrome/test/automation/dom_element_proxy.h"
9 #include "chrome/test/automation/javascript_execution_controller.h" 9 #include "chrome/test/automation/javascript_execution_controller.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 nested_count++; 159 nested_count++;
160 span_name.append("span"); 160 span_name.append("span");
161 ASSERT_NO_FATAL_FAILURE(EnsureNameMatches(node, span_name)); 161 ASSERT_NO_FATAL_FAILURE(EnsureNameMatches(node, span_name));
162 node = node->FindElement(By::Selectors("span")); 162 node = node->FindElement(By::Selectors("span"));
163 } 163 }
164 ASSERT_EQ(3, nested_count); 164 ASSERT_EQ(3, nested_count);
165 } 165 }
166 166
167 #if defined(OS_WIN) 167 #if defined(OS_WIN)
168 // http://crbug.com/72745 168 // http://crbug.com/72745
169 #define MAYBE_FindByText FLAKY_FindByText 169 #define MAYBE_FindByText DISABLED_FindByText
170 #else 170 #else
171 #define MAYBE_FindByText FindByText 171 #define MAYBE_FindByText FindByText
172 #endif 172 #endif
173 IN_PROC_BROWSER_TEST_F(DOMAutomationTest, MAYBE_FindByText) { 173 IN_PROC_BROWSER_TEST_F(DOMAutomationTest, MAYBE_FindByText) {
174 ASSERT_TRUE(test_server()->Start()); 174 ASSERT_TRUE(test_server()->Start());
175 ui_test_utils::NavigateToURL(browser(), 175 ui_test_utils::NavigateToURL(browser(),
176 GetTestURL("find_elements/test.html")); 176 GetTestURL("find_elements/test.html"));
177 DOMElementProxyRef main_doc = ui_test_utils::GetActiveDOMDocument(browser()); 177 DOMElementProxyRef main_doc = ui_test_utils::GetActiveDOMDocument(browser());
178 178
179 // Find first element. 179 // Find first element.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 L"' \"" 336 L"' \""
337 }; 337 };
338 for (size_t i = 0; i < 3; i++) { 338 for (size_t i = 0; i < 3; i++) {
339 ASSERT_TRUE(textarea->SetText(WideToUTF8(set_and_expect_strings[i]))); 339 ASSERT_TRUE(textarea->SetText(WideToUTF8(set_and_expect_strings[i])));
340 ASSERT_NO_FATAL_FAILURE(EnsureTextMatches( 340 ASSERT_NO_FATAL_FAILURE(EnsureTextMatches(
341 textarea, WideToUTF8(set_and_expect_strings[i]))); 341 textarea, WideToUTF8(set_and_expect_strings[i])));
342 } 342 }
343 } 343 }
344 344
345 } // namespace 345 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy_uitest.cc ('k') | chrome/test/automation/extension_proxy_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698