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

Side by Side Diff: ios/chrome/browser/web/js_print_egtest.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: more header guards Created 3 years, 6 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
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 #include <map> 7 #include <map>
8 8
9 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 9 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
10 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 10 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
11 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 11 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
12 #import "ios/web/public/test/http_server.h" 12 #import "ios/web/public/test/http_server/http_server.h"
13 #import "ios/web/public/test/http_server_util.h" 13 #import "ios/web/public/test/http_server/http_server_util.h"
Eugene But (OOO till 7-30) 2017/05/26 17:22:29 s/import/include
baxley 2017/05/26 18:06:21 Done.
14 14
15 #if !defined(__has_feature) || !__has_feature(objc_arc) 15 #if !defined(__has_feature) || !__has_feature(objc_arc)
16 #error "This file requires ARC support." 16 #error "This file requires ARC support."
17 #endif 17 #endif
18 18
19 // Test case for bringing up the print dialog when a web site's JavaScript runs 19 // Test case for bringing up the print dialog when a web site's JavaScript runs
20 // "window.print". 20 // "window.print".
21 @interface JSPrintTestCase : ChromeTestCase 21 @interface JSPrintTestCase : ChromeTestCase
22 @end 22 @end
23 23
(...skipping 25 matching lines...) Expand all
49 assertWithMatcher:grey_sufficientlyVisible()]; 49 assertWithMatcher:grey_sufficientlyVisible()];
50 50
51 // Clean up and close print dialog. 51 // Clean up and close print dialog.
52 id<GREYMatcher> cancelButton = 52 id<GREYMatcher> cancelButton =
53 grey_allOf(grey_accessibilityLabel(@"Cancel"), 53 grey_allOf(grey_accessibilityLabel(@"Cancel"),
54 grey_accessibilityTrait(UIAccessibilityTraitButton), nil); 54 grey_accessibilityTrait(UIAccessibilityTraitButton), nil);
55 [[EarlGrey selectElementWithMatcher:cancelButton] performAction:grey_tap()]; 55 [[EarlGrey selectElementWithMatcher:cancelButton] performAction:grey_tap()];
56 } 56 }
57 57
58 @end 58 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698