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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 | 1024 |
1025 GURL url = test_server()->GetURL( | 1025 GURL url = test_server()->GetURL( |
1026 "files/autofill/autofill_confirmemail_form.html"); | 1026 "files/autofill/autofill_confirmemail_form.html"); |
1027 ui_test_utils::NavigateToURL(browser(), url); | 1027 ui_test_utils::NavigateToURL(browser(), url); |
1028 PopulateForm("NAME_FIRST"); | 1028 PopulateForm("NAME_FIRST"); |
1029 | 1029 |
1030 ExpectFieldValue("EMAIL_CONFIRM", email); | 1030 ExpectFieldValue("EMAIL_CONFIRM", email); |
1031 // TODO(isherman): verify entire form. | 1031 // TODO(isherman): verify entire form. |
1032 } | 1032 } |
1033 | 1033 |
1034 // http://crbug.com/150084 | 1034 // http://crbug.com/281527 |
1035 #if defined(OS_MACOSX) | 1035 #if defined(OS_MACOSX) |
1036 #define MAYBE_FormFillLatencyAfterSubmit FormFillLatencyAfterSubmit | 1036 #define MAYBE_FormFillLatencyAfterSubmit FormFillLatencyAfterSubmit |
1037 #else | 1037 #else |
1038 #define MAYBE_FormFillLatencyAfterSubmit DISABLED_FormFillLatencyAfterSubmit | 1038 #define MAYBE_FormFillLatencyAfterSubmit DISABLED_FormFillLatencyAfterSubmit |
1039 #endif | 1039 #endif |
1040 // Test latency time on form submit with lots of stored Autofill profiles. | 1040 // Test latency time on form submit with lots of stored Autofill profiles. |
1041 // This test verifies when a profile is selected from the Autofill dictionary | 1041 // This test verifies when a profile is selected from the Autofill dictionary |
1042 // that consists of thousands of profiles, the form does not hang after being | 1042 // that consists of thousands of profiles, the form does not hang after being |
1043 // submitted. | 1043 // submitted. |
1044 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, | 1044 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 GetRenderViewHost(), | 1137 GetRenderViewHost(), |
1138 "var city = document.getElementById('city');" | 1138 "var city = document.getElementById('city');" |
1139 "city.onfocus = function() { domAutomationController.send(true); };" | 1139 "city.onfocus = function() { domAutomationController.send(true); };" |
1140 "city.focus()", | 1140 "city.focus()", |
1141 &result)); | 1141 &result)); |
1142 ASSERT_TRUE(result); | 1142 ASSERT_TRUE(result); |
1143 SendKeyToPageAndWait(ui::VKEY_A); | 1143 SendKeyToPageAndWait(ui::VKEY_A); |
1144 } | 1144 } |
1145 | 1145 |
1146 } // namespace autofill | 1146 } // namespace autofill |
OLD | NEW |