Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: ios/chrome/browser/ui/toolbar/toolbar_egtest.mm

Issue 2662583002: [ios] Disables ToolbarTestCase.testCopyPasteURL on device. (Closed)
Patch Set: Use macro and fix test name. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)testCopyPasteURL {
280 // TODO(crbug.com/686069): Re-enable this test. It is failing on iOS 9.
281 if (!base::ios::IsRunningOnIOS10OrLater()) {
282 EARL_GREY_TEST_DISABLED(@"Disabled on iOS 9.");
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698