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 <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
8 | 8 |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "components/reading_list/ios/reading_list_model.h" | 11 #include "components/reading_list/ios/reading_list_model.h" |
12 #include "ios/chrome/browser/reading_list/reading_list_model_factory.h" | 12 #include "ios/chrome/browser/reading_list/reading_list_model_factory.h" |
13 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" | 13 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" |
14 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" | 14 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" |
15 #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.h" | 15 #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.h" |
16 #import "ios/chrome/browser/ui/reading_list/reading_list_empty_collection_backgr
ound.h" | 16 #import "ios/chrome/browser/ui/reading_list/reading_list_empty_collection_backgr
ound.h" |
17 #include "ios/chrome/browser/ui/ui_util.h" | 17 #include "ios/chrome/browser/ui/ui_util.h" |
18 #include "ios/chrome/grit/ios_strings.h" | 18 #include "ios/chrome/grit/ios_strings.h" |
19 #include "ios/chrome/grit/ios_theme_resources.h" | 19 #include "ios/chrome/grit/ios_theme_resources.h" |
20 #import "ios/chrome/test/app/chrome_test_util.h" | 20 #import "ios/chrome/test/app/chrome_test_util.h" |
21 #import "ios/chrome/test/earl_grey/accessibility_util.h" | 21 #import "ios/chrome/test/earl_grey/accessibility_util.h" |
22 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 22 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
23 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 23 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
24 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 24 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
25 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 25 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
26 #import "ios/testing/earl_grey/disabled_test_macros.h" | |
27 #import "ios/testing/wait_util.h" | 26 #import "ios/testing/wait_util.h" |
28 #import "ios/third_party/material_components_ios/src/components/Snackbar/src/Mat
erialSnackbar.h" | 27 #import "ios/third_party/material_components_ios/src/components/Snackbar/src/Mat
erialSnackbar.h" |
29 #import "ios/web/public/test/http_server.h" | 28 #import "ios/web/public/test/http_server.h" |
30 #import "ios/web/public/test/http_server_util.h" | 29 #import "ios/web/public/test/http_server_util.h" |
31 | 30 |
32 #if !defined(__has_feature) || !__has_feature(objc_arc) | 31 #if !defined(__has_feature) || !__has_feature(objc_arc) |
33 #error "This file requires ARC support." | 32 #error "This file requires ARC support." |
34 #endif | 33 #endif |
35 | 34 |
36 namespace { | 35 namespace { |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 assertWithMatcher:grey_nil()]; | 553 assertWithMatcher:grey_nil()]; |
555 TapButtonWithID(IDS_IOS_READING_LIST_EDIT_BUTTON); | 554 TapButtonWithID(IDS_IOS_READING_LIST_EDIT_BUTTON); |
556 TapButtonWithID(IDS_IOS_READING_LIST_DELETE_ALL_READ_BUTTON); | 555 TapButtonWithID(IDS_IOS_READING_LIST_DELETE_ALL_READ_BUTTON); |
557 | 556 |
558 // Verify the background string is displayed. | 557 // Verify the background string is displayed. |
559 [[EarlGrey selectElementWithMatcher:EmptyBackground()] | 558 [[EarlGrey selectElementWithMatcher:EmptyBackground()] |
560 assertWithMatcher:grey_notNil()]; | 559 assertWithMatcher:grey_notNil()]; |
561 } | 560 } |
562 | 561 |
563 @end | 562 @end |
OLD | NEW |