| 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 "base/ref_counted.h" | 5 #include "base/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 15 matching lines...) Expand all Loading... |
| 26 std::string url_path = "files/dom_automation/"; | 26 std::string url_path = "files/dom_automation/"; |
| 27 url_path.append(path); | 27 url_path.append(path); |
| 28 return test_server()->GetURL(url_path); | 28 return test_server()->GetURL(url_path); |
| 29 } | 29 } |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 typedef DOMElementProxy::By By; | 32 typedef DOMElementProxy::By By; |
| 33 | 33 |
| 34 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
| 35 // See http://crbug.com/61636 | 35 // See http://crbug.com/61636 |
| 36 #define MAYBE_FindByXPath FLAKY_FindByXPath | 36 #define MAYBE_FindByXPath DISABLED_FindByXPath |
| 37 #else | 37 #else |
| 38 #define MAYBE_FindByXPath FindByXPath | 38 #define MAYBE_FindByXPath FindByXPath |
| 39 #endif | 39 #endif |
| 40 IN_PROC_BROWSER_TEST_F(DOMAutomationTest, MAYBE_FindByXPath) { | 40 IN_PROC_BROWSER_TEST_F(DOMAutomationTest, MAYBE_FindByXPath) { |
| 41 ASSERT_TRUE(test_server()->Start()); | 41 ASSERT_TRUE(test_server()->Start()); |
| 42 ui_test_utils::NavigateToURL(browser(), | 42 ui_test_utils::NavigateToURL(browser(), |
| 43 GetTestURL("find_elements/test.html")); | 43 GetTestURL("find_elements/test.html")); |
| 44 DOMElementProxyRef main_doc = ui_test_utils::GetActiveDOMDocument(browser()); | 44 DOMElementProxyRef main_doc = ui_test_utils::GetActiveDOMDocument(browser()); |
| 45 | 45 |
| 46 // Find first element. | 46 // Find first element. |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 L"' \"" | 299 L"' \"" |
| 300 }; | 300 }; |
| 301 for (size_t i = 0; i < 3; i++) { | 301 for (size_t i = 0; i < 3; i++) { |
| 302 ASSERT_TRUE(textarea->SetText(WideToUTF8(set_and_expect_strings[i]))); | 302 ASSERT_TRUE(textarea->SetText(WideToUTF8(set_and_expect_strings[i]))); |
| 303 ASSERT_NO_FATAL_FAILURE(textarea->EnsureTextMatches( | 303 ASSERT_NO_FATAL_FAILURE(textarea->EnsureTextMatches( |
| 304 WideToUTF8(set_and_expect_strings[i]))); | 304 WideToUTF8(set_and_expect_strings[i]))); |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 } // namespace | 308 } // namespace |
| OLD | NEW |