| 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 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.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" | 20 #import "ios/testing/earl_grey/disabled_test_macros.h" |
| 21 #import "ios/testing/wait_util.h" | 21 #import "ios/testing/wait_util.h" |
| 22 #import "ios/web/public/test/http_server.h" | 22 #import "ios/web/public/test/http_server.h" |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 ShowJavaScriptDialog(JavaScriptAlertType::ALERT); | 494 ShowJavaScriptDialog(JavaScriptAlertType::ALERT); |
| 495 | 495 |
| 496 // Tap the OK button. | 496 // Tap the OK button. |
| 497 TapOK(); | 497 TapOK(); |
| 498 | 498 |
| 499 // Wait for the html body to be reset to the correct value. | 499 // Wait for the html body to be reset to the correct value. |
| 500 WaitForWebDisplay(kAlertResultBody); | 500 WaitForWebDisplay(kAlertResultBody); |
| 501 } | 501 } |
| 502 | 502 |
| 503 @end | 503 @end |
| OLD | NEW |