| 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 #import "ios/chrome/test/earl_grey/accessibility_util.h" | 8 #include "ios/chrome/test/earl_grey/accessibility_util.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 // Returns whether a UIView is hidden from the screen, based on the alpha | 12 // Returns whether a UIView is hidden from the screen, based on the alpha |
| 13 // and hidden properties of the UIView. | 13 // and hidden properties of the UIView. |
| 14 bool ViewIsHidden(UIView* view) { | 14 bool ViewIsHidden(UIView* view) { |
| 15 return view.alpha == 0 || view.hidden; | 15 return view.alpha == 0 || view.hidden; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // Returns whether a view should be accessible. A view should be accessible if | 18 // Returns whether a view should be accessible. A view should be accessible if |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 GREYAssert(!inaccessibleChildrenError, | 344 GREYAssert(!inaccessibleChildrenError, |
| 345 @"The accessibility tests failed: Inaccessible children error"); | 345 @"The accessibility tests failed: Inaccessible children error"); |
| 346 GREYAssert(!noLabels, @"The accessibility tests failed: No labels error"); | 346 GREYAssert(!noLabels, @"The accessibility tests failed: No labels error"); |
| 347 GREYAssert(!badDefaultLabel, | 347 GREYAssert(!badDefaultLabel, |
| 348 @"The accessibility tests failed: Bad default labels error"); | 348 @"The accessibility tests failed: Bad default labels error"); |
| 349 GREYAssert(!tableViewError, | 349 GREYAssert(!tableViewError, |
| 350 @"The accessibility tests failed: Table view error"); | 350 @"The accessibility tests failed: Table view error"); |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace chrome_test_util | 353 } // namespace chrome_test_util |
| OLD | NEW |