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 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
8 | 8 |
9 #import "base/strings/sys_string_conversions.h" | 9 #import "base/strings/sys_string_conversions.h" |
10 #include "components/strings/grit/components_strings.h" | 10 #include "components/strings/grit/components_strings.h" |
11 #import "ios/chrome/browser/ui/dialogs/dialog_presenter.h" | 11 #import "ios/chrome/browser/ui/dialogs/dialog_presenter.h" |
12 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" | 12 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" |
13 #include "ios/chrome/browser/ui/ui_util.h" | 13 #include "ios/chrome/browser/ui/ui_util.h" |
14 #include "ios/chrome/grit/ios_strings.h" | 14 #include "ios/chrome/grit/ios_strings.h" |
15 #include "ios/chrome/test/app/chrome_test_util.h" | 15 #include "ios/chrome/test/app/chrome_test_util.h" |
16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
17 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 17 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
18 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 18 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
19 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 19 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
20 #import "ios/testing/earl_grey/disabled_test_macros.h" | |
21 #import "ios/testing/wait_util.h" | 20 #import "ios/testing/wait_util.h" |
22 #import "ios/web/public/test/http_server.h" | 21 #import "ios/web/public/test/http_server.h" |
23 #import "ios/web/public/test/http_server_util.h" | 22 #import "ios/web/public/test/http_server_util.h" |
24 #include "ios/web/public/web_state/web_state.h" | 23 #include "ios/web/public/web_state/web_state.h" |
25 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/l10n/l10n_util_mac.h" | 25 #include "ui/base/l10n/l10n_util_mac.h" |
27 #import "url/gurl.h" | 26 #import "url/gurl.h" |
28 | 27 |
29 #if !defined(__has_feature) || !__has_feature(objc_arc) | 28 #if !defined(__has_feature) || !__has_feature(objc_arc) |
30 #error "This file requires ARC support." | 29 #error "This file requires ARC support." |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 ShowJavaScriptDialog(JavaScriptAlertType::ALERT); | 493 ShowJavaScriptDialog(JavaScriptAlertType::ALERT); |
495 | 494 |
496 // Tap the OK button. | 495 // Tap the OK button. |
497 TapOK(); | 496 TapOK(); |
498 | 497 |
499 // Wait for the html body to be reset to the correct value. | 498 // Wait for the html body to be reset to the correct value. |
500 WaitForWebDisplay(kAlertResultBody); | 499 WaitForWebDisplay(kAlertResultBody); |
501 } | 500 } |
502 | 501 |
503 @end | 502 @end |
OLD | NEW |