| 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 <UIKit/UIKit.h> | 5 #import <UIKit/UIKit.h> |
| 6 #import <WebKit/WebKit.h> | 6 #import <WebKit/WebKit.h> |
| 7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
| 8 | 8 |
| 9 #import <EarlGrey/EarlGrey.h> | 9 #import <EarlGrey/EarlGrey.h> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 performAction:grey_tap()]; | 132 performAction:grey_tap()]; |
| 133 [[EarlGrey selectElementWithMatcher:web::addressFieldText(URL1.spec())] | 133 [[EarlGrey selectElementWithMatcher:web::addressFieldText(URL1.spec())] |
| 134 assertWithMatcher:grey_notNil()]; | 134 assertWithMatcher:grey_notNil()]; |
| 135 | 135 |
| 136 [[EarlGrey selectElementWithMatcher:web::forwardButton()] | 136 [[EarlGrey selectElementWithMatcher:web::forwardButton()] |
| 137 performAction:grey_tap()]; | 137 performAction:grey_tap()]; |
| 138 [[EarlGrey selectElementWithMatcher:web::addressFieldText(URL2.spec())] | 138 [[EarlGrey selectElementWithMatcher:web::addressFieldText(URL2.spec())] |
| 139 assertWithMatcher:grey_notNil()]; | 139 assertWithMatcher:grey_notNil()]; |
| 140 } | 140 } |
| 141 | 141 |
| 142 // Tests that sometimes passing and failing makes the bots red. | |
| 143 // TODO(crbug.com/614729): Remove this test once it is verified that | |
| 144 // infrastructure is properly working. | |
| 145 - (void)testCoinFlip { | |
| 146 GREYAssertTrue(arc4random_uniform(10) < 5, @"Failed coin flip."); | |
| 147 } | |
| 148 | |
| 149 @end | 142 @end |
| OLD | NEW |