| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 // key press event callback handles the event (at least on Mac), a DCHECK | 553 // key press event callback handles the event (at least on Mac), a DCHECK |
| 554 // ends up going off that the |event| doesn't have an |os_event| associated | 554 // ends up going off that the |event| doesn't have an |os_event| associated |
| 555 // with it. | 555 // with it. |
| 556 content::RenderWidgetHost::KeyPressEventCallback key_press_event_sink_; | 556 content::RenderWidgetHost::KeyPressEventCallback key_press_event_sink_; |
| 557 | 557 |
| 558 DISALLOW_COPY_AND_ASSIGN(AutofillInteractiveTest); | 558 DISALLOW_COPY_AND_ASSIGN(AutofillInteractiveTest); |
| 559 }; | 559 }; |
| 560 | 560 |
| 561 // Test that basic form fill is working. | 561 // Test that basic form fill is working. |
| 562 // Flakily times out on ChromeOS http://crbug.com/585885 | 562 // Flakily times out on ChromeOS http://crbug.com/585885 |
| 563 #if defined(OS_CHROMEOS) | 563 // Flakily fails on Windows http://crbug.com/639940 |
| 564 #if defined(OS_CHROMEOS) || defined(OS_WIN) |
| 564 #define MAYBE_BasicFormFill DISABLED_BasicFormFill | 565 #define MAYBE_BasicFormFill DISABLED_BasicFormFill |
| 565 #else | 566 #else |
| 566 #define MAYBE_BasicFormFill BasicFormFill | 567 #define MAYBE_BasicFormFill BasicFormFill |
| 567 #endif | 568 #endif |
| 568 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, MAYBE_BasicFormFill) { | 569 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, MAYBE_BasicFormFill) { |
| 569 CreateTestProfile(); | 570 CreateTestProfile(); |
| 570 | 571 |
| 571 // Load the test page. | 572 // Load the test page. |
| 572 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), | 573 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), |
| 573 GURL(std::string(kDataURIPrefix) + kTestFormString))); | 574 GURL(std::string(kDataURIPrefix) + kTestFormString))); |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), | 1715 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), |
| 1715 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString))); | 1716 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString))); |
| 1716 ASSERT_TRUE(content::ExecuteScript( | 1717 ASSERT_TRUE(content::ExecuteScript( |
| 1717 GetRenderViewHost(), | 1718 GetRenderViewHost(), |
| 1718 "document.getElementById('user').value = 'user';")); | 1719 "document.getElementById('user').value = 'user';")); |
| 1719 FocusFieldByName("password"); | 1720 FocusFieldByName("password"); |
| 1720 PasteStringAndWait("foobar"); | 1721 PasteStringAndWait("foobar"); |
| 1721 } | 1722 } |
| 1722 | 1723 |
| 1723 } // namespace autofill | 1724 } // namespace autofill |
| OLD | NEW |