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 <XCTest/XCTest.h> | 5 #import <XCTest/XCTest.h> |
6 | 6 |
7 #include "base/ios/ios_util.h" | 7 #include "base/ios/ios_util.h" |
8 #include "components/strings/grit/components_strings.h" | 8 #include "components/strings/grit/components_strings.h" |
9 #include "ios/chrome/test/app/web_view_interaction_test_util.h" | 9 #include "ios/chrome/test/app/web_view_interaction_test_util.h" |
10 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 10 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
11 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 11 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
12 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 12 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
13 #import "ios/testing/earl_grey/disabled_test_macros.h" | |
14 #import "ios/web/public/test/http_server.h" | 13 #import "ios/web/public/test/http_server.h" |
15 #include "ios/web/public/test/http_server_util.h" | 14 #include "ios/web/public/test/http_server_util.h" |
16 #include "ios/web/public/test/response_providers/data_response_provider.h" | 15 #include "ios/web/public/test/response_providers/data_response_provider.h" |
17 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
18 | 17 |
19 using chrome_test_util::BackButton; | 18 using chrome_test_util::BackButton; |
20 using chrome_test_util::ForwardButton; | 19 using chrome_test_util::ForwardButton; |
21 using chrome_test_util::TapWebViewElementWithId; | 20 using chrome_test_util::TapWebViewElementWithId; |
22 using chrome_test_util::WebViewContainingText; | 21 using chrome_test_util::WebViewContainingText; |
23 | 22 |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 // Navigate forward and assert the the resulting page is the proper | 685 // Navigate forward and assert the the resulting page is the proper |
687 // destination. | 686 // destination. |
688 [[EarlGrey selectElementWithMatcher:ForwardButton()] | 687 [[EarlGrey selectElementWithMatcher:ForwardButton()] |
689 performAction:grey_tap()]; | 688 performAction:grey_tap()]; |
690 [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( | 689 [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( |
691 destinationURL.GetContent())] | 690 destinationURL.GetContent())] |
692 assertWithMatcher:grey_notNil()]; | 691 assertWithMatcher:grey_notNil()]; |
693 } | 692 } |
694 | 693 |
695 @end | 694 @end |
OLD | NEW |