Searched refs:onView (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/testing/espresso/espresso-sample/src/androidTest/java/com/google/android/apps/common/testing/ui/testapp/
H A DSwipeTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
52 onView(withText("Position #0")).check(matches(isDisplayed()));
55 onView(withId(R.id.pager_layout)).perform(swipeLeft());
58 onView(withText("Position #1")).check(matches(isDisplayed()));
61 onView(withId(R.id.pager_layout)).perform(swipeLeft());
64 onView(withText("Position #2")).check(matches(isDisplayed()));
67 onView(withId(R.id.pager_layout)).perform(swipeLeft());
70 onView(withText("Position #2")).check(matches(isDisplayed()));
75 onView(withText("Position #0")).check(matches(isDisplayed()));
78 onView(withI
[all...]
H A DActionBarTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
53 onView(withId(R.id.hide_contextual_action_bar))
56 onView(withId(R.id.action_save))
59 onView(withId(R.id.text_action_bar_result))
65 onView(withId(R.id.show_contextual_action_bar))
68 onView((withId(R.id.action_lock)))
71 onView(withId(R.id.text_action_bar_result))
78 onView(withId(R.id.hide_contextual_action_bar))
84 onView(withText("World"))
87 onView(withI
[all...]
H A DMenuTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
56 onView(withText(R.string.popup_item_1_text)).check(doesNotExist());
57 onView(withId(R.id.popup_button)).perform(click());
58 onView(withText(R.string.popup_item_1_text)).check(matches(isDisplayed())).perform(click());
60 onView(withId(R.id.text_menu_result)).check(matches(withText(R.string.popup_item_1_text)));
64 onView(withText(R.string.context_item_2_text)).check(doesNotExist());
65 onView(withId(R.id.text_context_menu)).perform(longClick());
66 onView(withText(R.string.context_item_2_text)).check(matches(isDisplayed())).perform(click());
68 onView(withId(R.id.text_menu_result)).check(matches(withText(R.string.context_item_2_text)));
72 onView(withTex
[all...]
H A DBasicTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
37 * {@link com.google.android.apps.common.testing.ui.espresso.Espresso#onView(org.hamcrest.Matcher)}
57 onView(withId(R.id.button_simple))
60 onView(withId(R.id.text_simple))
65 onView(withId(R.id.sendtext_simple))
68 onView(withId(R.id.send_simple))
74 onView(withId(R.id.display_data))
80 onView(withId(R.id.sendtext_simple))
87 onView(withId(R.id.spinner_simple))
95 onView(withI
[all...]
H A DAdapterViewTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
70 onView(withId(R.id.selection_row_value))
79 onView(withId(R.id.selection_row_value))
82 onView(withId(R.id.selection_column_value))
91 onView(withId(R.id.selection_row_value))
98 onView(withId(R.id.selection_row_value))
107 onView(withId(R.id.selection_row_value))
113 onView(withId(R.id.list))
H A DDrawerActionsTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
56 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
61 onView(withId(R.id.drawer_layout)).check(matches(isOpen()));
66 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
73 onView(withId(R.id.drawer_layout)).check(matches(isOpen()));
82 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
85 onView(withId(R.id.drawer_text_view)).check(matches(withText("You picked: " + rowContents)));
H A DMultipleWindowTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
42 * Espresso provides the ability to switch the default window matcher used in both onView and onData
45 * @see com.google.android.apps.common.testing.ui.espresso.Espresso#onView
83 onView(withId(R.id.auto_complete_text_view))
90 onView(withId(R.id.auto_complete_text_view))
95 onView(withText("South China Sea"))
100 onView(withId(R.id.auto_complete_text_view))
106 onView(withId(R.id.auto_complete_text_view))
116 onView(withId(R.id.auto_complete_text_view))
H A DScrollToTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
53 onView(withId(is(R.id.bottom_left)))
H A DAdvancedSynchronizationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
84 onView(withId(R.id.request_button)).perform(click());
89 onView(withId(R.id.status_text)).check(matches(withText(R.string.hello_world)));
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/action/
H A DWindowOrderingIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
57 onView(withText(R.string.item_1_text))
59 onView(withId(R.id.make_popup_menu_button))
61 onView(withText(R.string.item_1_text))
64 onView(withText(R.string.item_1_text))
70 onView(withId(R.id.popup_title))
72 onView(withId(R.id.make_popup_view_button))
74 onView(withId(R.id.popup_title))
77 onView(withId(R.id.popup_title))
82 onView(withTex
[all...]
H A DClearTextActionIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
49 onView(withId(is(R.id.send_data_to_message_edit_text))).check(matches(withText(is(text))));
50 onView(withId(is(R.id.send_data_to_message_edit_text))).perform(clearText());
51 onView(withId(is(R.id.send_data_to_message_edit_text))).check(matches(withText(is(""))));
58 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText(text));
59 onView(withId(is(R.id.send_data_to_call_edit_text))).check(matches(withText(is(text))));
60 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(clearText());
61 onView(withId(is(R.id.send_data_to_call_edit_text))).check(matches(withText(is(""))));
H A DEventActionIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
63 onView(withText(is(getActivity().getString(R.string.text_click))))
65 onView(withId(is(R.id.gesture_area))).perform(click());
66 onView(withId(is(R.id.text_click))).check(matches(isDisplayed()));
67 onView(withText(is(getActivity().getString(R.string.text_click))))
72 onView(withText(is(getActivity().getString(R.string.text_click))))
76 onView(withId(is(R.id.gesture_area))).perform(click(
93 onView(withId(is(R.id.text_click))).check(matches(isDisplayed()));
94 onView(withText(is(getActivity().getString(R.string.text_click))))
100 onView(withTex
[all...]
H A DTypeTextActionIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
58 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText("Hello!"));
63 onView(withId(R.id.enter_data_edit_text)).perform(typeText("Hello World!\n"));
64 onView(allOf(withId(R.id.enter_data_response_text), withText("Hello World!")))
69 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText(
71 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeTextIntoFocusedView(
73 onView(withId(is(R.id.send_data_to_call_edit_text))).check(matches(withText(
78 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText(
81 onView(withId(is(R.id.edit_text_message)))
91 onView(allO
[all...]
H A DEditorActionIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
58 onView(withId(R.id.search_box)).perform(scrollTo(), ViewActions.typeText(searchFor));
59 onView(withId(R.id.search_box))
62 onView(withId(R.id.search_result)).perform(scrollTo());
63 onView(withId(R.id.search_result))
69 onView(withId(R.id.send_button)).perform(pressImeActionButton());
77 onView(withId(R.id.enter_data_edit_text)).perform(pressImeActionButton());
H A DKeyEventActionIntegrationTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
89 onView(isRoot()).perform(ViewActions.pressBack());
103 onView(allOf(withParent(withId(R.id.simple_fragment)), isAssignableFrom(TextView.class)))
112 onView(withId(R.id.new_fragment)).perform(click()).perform(click()).perform(click());
114 onView(allOf(withParent(withId(R.id.simple_fragment)), isAssignableFrom(TextView.class)))
119 onView(allOf(withParent(withId(R.id.simple_fragment)), isAssignableFrom(TextView.class)))
124 onView(allOf(withParent(withId(R.id.simple_fragment)), isAssignableFrom(TextView.class)))
129 onView(allOf(withParent(withId(R.id.simple_fragment)), isAssignableFrom(TextView.class)))
143 onView(withId(R.id.enter_data_edit_text)).perform(click());
144 onView(withI
[all...]
H A DScrollToActionIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
52 onView(withId(is(R.id.bottom_left)))
60 onView(withId(is(R.id.bottom_right)))
64 onView(withId(is(R.id.top_left)))
71 onView(withId(is(R.id.double_scroll)))
H A DAdapterDataIntegrationTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
60 onView(withId(R.id.selection_row_value))
66 onView(withId(R.id.selection_row_value))
73 onView(withId(R.id.selection_row_value))
82 onView(withId(R.id.selection_row_value))
88 onView(allOf(withText("7"), hasSibling(withText("item: 0"))))
90 onView(withId(R.id.selection_row_value))
H A DSwipeActionIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
55 onView(withId(R.id.small_pager))
69 onView(withId(R.id.small_pager))
79 onView(withId(R.id.small_pager))
91 onView(withId(R.id.overlapped_pager))
102 onView(withId(R.id.text_simple))
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/
H A DEspressoEdgeCaseTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
86 onView(withId(R.id.enter_data_edit_text))
110 onView(withId(R.id.enter_data_edit_text))
112 onView(withId(R.id.enter_data_edit_text))
121 onView(withId(R.id.enter_data_edit_text))
149 onView(withId(R.id.enter_data_edit_text))
151 onView(withId(R.id.enter_data_edit_text))
160 onView(withId(R.id.enter_data_edit_text))
189 onView(withId(R.id.enter_data_edit_text))
191 onView(withI
[all...]
H A DEspressoTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
72 onView(withText("Key"))
74 onView(withId(R.id.text_action_bar_result))
82 onView(withId(R.id.hide_contextual_action_bar))
85 onView(withText("World"))
87 onView(withId(R.id.text_action_bar_result))
96 onView(withId(R.id.enter_data_edit_text)).perform(new ViewAction() {
116 onView(withId(R.id.enter_data_edit_text)).perform(ViewActions.closeSoftKeyboard());
127 onView(withText("does not exist")).perform(click());
H A DAppNotIdleExceptionTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
70 onView(withId(R.id.request_button)).perform(click());
/frameworks/testing/espresso/espresso-contrib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/contrib/
H A DDrawerActionsIntegrationTest.java20 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
57 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
62 onView(withId(R.id.drawer_layout)).check(matches(isOpen()));
67 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
72 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
80 onView(withId(R.id.drawer_layout)).check(matches(isOpen()));
88 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
101 onView(withId(R.id.drawer_layout)).check(matches(isClosed()));
104 onView(withId(R.id.drawer_text_view)).check(matches(withText("You picked: " + rowContents)));
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DDefaultFailureHandlerTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
59 onView(isRoot()).check(matches(not(isDisplayed())));
68 onView(isRoot()).check(new ViewAssertion() {
82 onView(withMatchesThatReturns(false)).check(matches(not(isDisplayed())));
91 onView(withMatchesThatReturns(true)).check(matches(isDisplayed()));
H A DIdlingResourceIntegrationTest.java19 import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
64 onView(withText(equalToIgnoringCase("send"))).perform(click());
67 onView(withText(is("Data from sender"))).check(matches(isDisplayed()));
73 onView(withText(equalToIgnoringCase("send"))).perform(click());
79 onView(withText(equalToIgnoringCase("send"))).perform(click());
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/
H A DEspresso.java47 * methods (e.g. onView) or perform top-level user actions (e.g. pressBack).
66 public static ViewInteraction onView(final Matcher<View> viewMatcher) { method in class:Espresso
145 onView(isRoot()).perform(ViewActions.closeSoftKeyboard());
159 onView(isRoot())
162 onView(OVERFLOW_BUTTON_MATCHER)
173 onView(isRoot()).perform(ViewActions.pressBack());
191 onView(isRoot())
197 onView(isRoot())
200 onView(OVERFLOW_BUTTON_MATCHER)
204 onView(isRoo
[all...]

Completed in 242 milliseconds

12