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

Side by Side Diff: ios/chrome/browser/ui/fullscreen_egtest.mm

Issue 2839453002: Disable testLongPDFScroll on devices (Closed)
Patch Set: Created 3 years, 8 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 <UIKit/UIKit.h> 6 #import <UIKit/UIKit.h>
7 #import <XCTest/XCTest.h> 7 #import <XCTest/XCTest.h>
8 8
9 #include "base/ios/ios_util.h" 9 #include "base/ios/ios_util.h"
10 #include "base/mac/bind_objc_block.h" 10 #include "base/mac/bind_objc_block.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 [ChromeEarlGreyUI waitForToolbarVisible:YES]; 132 [ChromeEarlGreyUI waitForToolbarVisible:YES];
133 133
134 // Test that the toolbar is no longer visible after a user swipes up. 134 // Test that the toolbar is no longer visible after a user swipes up.
135 HideToolbarUsingUI(); 135 HideToolbarUsingUI();
136 [ChromeEarlGreyUI waitForToolbarVisible:NO]; 136 [ChromeEarlGreyUI waitForToolbarVisible:NO];
137 } 137 }
138 138
139 // Verifies that the toolbar properly appears/disappears when scrolling up/down 139 // Verifies that the toolbar properly appears/disappears when scrolling up/down
140 // on a PDF that is long in length and wide in width. 140 // on a PDF that is long in length and wide in width.
141 - (void)testLongPDFScroll { 141 - (void)testLongPDFScroll {
142 // TODO(crbug.com/714329): Re-enable this test on devices.
143 #if !TARGET_IPHONE_SIMULATOR
144 EARL_GREY_TEST_DISABLED(@"Test disabled on device.");
145 #endif
146
142 web::test::SetUpFileBasedHttpServer(); 147 web::test::SetUpFileBasedHttpServer();
143 GURL URL = web::test::HttpServer::MakeUrl( 148 GURL URL = web::test::HttpServer::MakeUrl(
144 "http://ios/testing/data/http_server_files/two_pages.pdf"); 149 "http://ios/testing/data/http_server_files/two_pages.pdf");
145 [ChromeEarlGrey loadURL:URL]; 150 [ChromeEarlGrey loadURL:URL];
146 151
147 // Test that the toolbar is hidden after a user swipes up. 152 // Test that the toolbar is hidden after a user swipes up.
148 HideToolbarUsingUI(); 153 HideToolbarUsingUI();
149 [ChromeEarlGreyUI waitForToolbarVisible:NO]; 154 [ChromeEarlGreyUI waitForToolbarVisible:NO];
150 155
151 // Test that the toolbar is visible after a user swipes down. 156 // Test that the toolbar is visible after a user swipes down.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 [ChromeEarlGrey loadURL:URL]; 411 [ChromeEarlGrey loadURL:URL];
407 HideToolbarUsingUI(); 412 HideToolbarUsingUI();
408 [ChromeEarlGreyUI waitForToolbarVisible:NO]; 413 [ChromeEarlGreyUI waitForToolbarVisible:NO];
409 414
410 chrome_test_util::TapWebViewElementWithId("link"); 415 chrome_test_util::TapWebViewElementWithId("link");
411 AssertURLIs(ErrorPageResponseProvider::GetDnsFailureUrl()); 416 AssertURLIs(ErrorPageResponseProvider::GetDnsFailureUrl());
412 [ChromeEarlGreyUI waitForToolbarVisible:YES]; 417 [ChromeEarlGreyUI waitForToolbarVisible:YES];
413 } 418 }
414 419
415 @end 420 @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