OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
6 | 6 |
7 #include "base/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
8 #import "base/test/ios/wait_util.h" | 8 #import "base/test/ios/wait_util.h" |
9 #include "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" | 9 #include "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" |
10 #include "ios/chrome/browser/ui/ui_util.h" | 10 #include "ios/chrome/browser/ui/ui_util.h" |
11 #include "ios/chrome/grit/ios_strings.h" | 11 #include "ios/chrome/grit/ios_strings.h" |
12 #import "ios/chrome/test/app/chrome_test_util.h" | 12 #import "ios/chrome/test/app/chrome_test_util.h" |
13 #import "ios/chrome/test/app/tab_test_util.h" | 13 #import "ios/chrome/test/app/tab_test_util.h" |
14 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 14 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
15 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 15 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
16 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 16 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
17 #import "ios/testing/earl_grey/disabled_test_macros.h" | |
18 #import "ios/testing/wait_util.h" | 17 #import "ios/testing/wait_util.h" |
19 #import "ios/web/public/test/earl_grey/web_view_actions.h" | 18 #import "ios/web/public/test/earl_grey/web_view_actions.h" |
20 #import "ios/web/public/test/earl_grey/web_view_matchers.h" | 19 #import "ios/web/public/test/earl_grey/web_view_matchers.h" |
21 #import "ios/web/public/test/http_server.h" | 20 #import "ios/web/public/test/http_server.h" |
22 #include "ios/web/public/test/http_server_util.h" | 21 #include "ios/web/public/test/http_server_util.h" |
23 | 22 |
24 namespace { | 23 namespace { |
25 | 24 |
26 const char kFormElementId1[] = "username"; | 25 const char kFormElementId1[] = "username"; |
27 const char kFormElementId2[] = "otherstuff"; | 26 const char kFormElementId2[] = "otherstuff"; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // visible doesn't crash the browser. | 151 // visible doesn't crash the browser. |
153 - (void)testCloseKeyboardWhenNotVisible { | 152 - (void)testCloseKeyboardWhenNotVisible { |
154 FormInputAccessoryViewController* inputAccessoryViewController = | 153 FormInputAccessoryViewController* inputAccessoryViewController = |
155 chrome_test_util::GetInputAccessoryViewController(); | 154 chrome_test_util::GetInputAccessoryViewController(); |
156 GREYAssertNotNil(inputAccessoryViewController, | 155 GREYAssertNotNil(inputAccessoryViewController, |
157 @"The tab's input accessory view should not be non nil."); | 156 @"The tab's input accessory view should not be non nil."); |
158 [inputAccessoryViewController closeKeyboardWithoutButtonPress]; | 157 [inputAccessoryViewController closeKeyboardWithoutButtonPress]; |
159 } | 158 } |
160 | 159 |
161 @end | 160 @end |
OLD | NEW |