Chromium Code Reviews| 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 <XCTest/XCTest.h> | 6 #import <XCTest/XCTest.h> |
| 7 | 7 |
| 8 #include "base/ios/ios_util.h" | 8 #include "base/ios/ios_util.h" |
| 9 #include "components/strings/grit/components_strings.h" | 9 #include "components/strings/grit/components_strings.h" |
| 10 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" | 10 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 [[EarlGrey selectElementWithMatcher:grey_accessibilityID(@"Typing Shield")] | 269 [[EarlGrey selectElementWithMatcher:grey_accessibilityID(@"Typing Shield")] |
| 270 assertWithMatcher:grey_notNil()]; | 270 assertWithMatcher:grey_notNil()]; |
| 271 | 271 |
| 272 [[EarlGrey selectElementWithMatcher:chrome_test_util::ToolsMenuButton()] | 272 [[EarlGrey selectElementWithMatcher:chrome_test_util::ToolsMenuButton()] |
| 273 performAction:grey_tap()]; | 273 performAction:grey_tap()]; |
| 274 [[EarlGrey selectElementWithMatcher:grey_accessibilityID(@"Typing Shield")] | 274 [[EarlGrey selectElementWithMatcher:grey_accessibilityID(@"Typing Shield")] |
| 275 assertWithMatcher:grey_notVisible()]; | 275 assertWithMatcher:grey_notVisible()]; |
| 276 } | 276 } |
| 277 | 277 |
| 278 // Verifies that copying and pasting a URL includes the hidden protocol prefix. | 278 // Verifies that copying and pasting a URL includes the hidden protocol prefix. |
| 279 - (void)testCopyPasteURL { | 279 - (void)MAYBE_testCopyPasteURL { |
|
baxley
2017/01/27 16:41:43
remove MAYBE_
baxley
2017/01/27 16:41:43
remove MAYBE_
| |
| 280 // TODO(crbug.com/686069): Re-enable this test. It is failing on iOS 9. | |
| 281 if (!base::ios::IsRunningOnIOS10OrLater()) { | |
| 282 return; | |
|
baxley
2017/01/27 16:41:43
we have a macro for this to log that it is disable
| |
| 283 } | |
| 284 | |
| 280 std::map<GURL, std::string> responses; | 285 std::map<GURL, std::string> responses; |
| 281 const GURL URL = web::test::HttpServer::MakeUrl("http://testPage"); | 286 const GURL URL = web::test::HttpServer::MakeUrl("http://testPage"); |
| 282 const GURL secondURL = web::test::HttpServer::MakeUrl("http://pastePage"); | 287 const GURL secondURL = web::test::HttpServer::MakeUrl("http://pastePage"); |
| 283 | 288 |
| 284 [ChromeEarlGrey loadURL:URL]; | 289 [ChromeEarlGrey loadURL:URL]; |
| 285 | 290 |
| 286 [[EarlGrey selectElementWithMatcher:chrome_test_util::Omnibox()] | 291 [[EarlGrey selectElementWithMatcher:chrome_test_util::Omnibox()] |
| 287 assertWithMatcher:chrome_test_util::OmniboxText(URL.GetContent())]; | 292 assertWithMatcher:chrome_test_util::OmniboxText(URL.GetContent())]; |
| 288 | 293 |
| 289 [ChromeEarlGreyUI openShareMenu]; | 294 [ChromeEarlGreyUI openShareMenu]; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 436 | 441 |
| 437 [[EarlGrey selectElementWithMatcher:grey_accessibilityLabel(clearText)] | 442 [[EarlGrey selectElementWithMatcher:grey_accessibilityLabel(clearText)] |
| 438 performAction:grey_tap()]; | 443 performAction:grey_tap()]; |
| 439 [[EarlGrey selectElementWithMatcher:chrome_test_util::Omnibox()] | 444 [[EarlGrey selectElementWithMatcher:chrome_test_util::Omnibox()] |
| 440 assertWithMatcher:chrome_test_util::OmniboxText("")]; | 445 assertWithMatcher:chrome_test_util::OmniboxText("")]; |
| 441 | 446 |
| 442 SelectNewTabPagePanel(NewTabPage::kMostVisitedPanel); | 447 SelectNewTabPagePanel(NewTabPage::kMostVisitedPanel); |
| 443 } | 448 } |
| 444 } | 449 } |
| 445 @end | 450 @end |
| OLD | NEW |