Home
last modified time | relevance | path

Searched refs:withText (Results 1 – 25 of 25) sorted by relevance

/frameworks/support/design/tests/src/android/support/design/widget/
DNavigationViewTest.java46 import static android.support.test.espresso.matcher.ViewMatchers.withText;
131 onView(allOf(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i])), in testBasics()
147 onView(allOf(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i])), in testTextAppearance()
158 onView(allOf(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i])), in testTextAppearance()
176 onView(allOf(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i])), in testTextColor()
189 onView(allOf(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i])), in testTextColor()
213 hasDescendant(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i]))), in testBackground()
229 hasDescendant(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i]))), in testBackground()
245 hasDescendant(withText(mMenuStringContent.get(MENU_CONTENT_ITEM_IDS[i]))), in testBackground()
288 onView(allOf(withText(mMenuStringContent.get(R.id.destination_home)), in testIconTinting()
[all …]
DTextInputLayoutTest.java32 import static android.support.test.espresso.matcher.ViewMatchers.withText;
72 onView(withText(ERROR_MESSAGE_1)).check(matches(isDisplayed())); in testSetErrorEnablesErrorIsDisplayed()
83 onView(withText(ERROR_MESSAGE_1)).check(doesNotExist()); in testDisabledErrorIsNotDisplayed()
96 onView(withText(ERROR_MESSAGE_2)).check(matches(isDisplayed())); in testSetErrorOnDisabledSetErrorIsDisplayed()
DBottomNavigationViewTest.java25 import static android.support.test.espresso.matcher.ViewMatchers.withText;
98 onView(allOf(withText(mMenuStringContent.get(R.id.destination_profile)), in testNavigationSelectionListener()
109 onView(allOf(withText(mMenuStringContent.get(R.id.destination_people)), in testNavigationSelectionListener()
DSnackbarTest.java72 withText(expectedMessage).matches(allOf( in verifySnackbarContent()
78 withText(expectedAction).matches(allOf( in verifySnackbarContent()
DTabLayoutWithViewPagerTest.java437 onView(allOf(isDescendantOfA(withId(R.id.tabs)), withText("Title " + j))). in testFixedTabMode()
510 hasDescendant(withText(tabTitle))); in verifyMinMaxTabWidth()
/frameworks/support/core-ui/tests/java/android/support/v4/view/
DViewPagerWithTabStripTest.java24 import static android.support.test.espresso.matcher.ViewMatchers.withText;
50 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
54 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
58 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
65 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
69 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Blue"))).perform(click()); in assertStripInteraction()
DViewPagerWithTitleStripTest.java24 import static android.support.test.espresso.matcher.ViewMatchers.withText;
51 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
55 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
61 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Red"))).perform(click()); in assertStripInteraction()
65 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Green"))).perform(click()); in assertStripInteraction()
69 onView(allOf(isDescendantOfA(withId(R.id.titles)), withText("Blue"))).perform(click()); in assertStripInteraction()
DBaseViewPagerTest.java31 import static android.support.test.espresso.matcher.ViewMatchers.withText;
461 withText("Body 0")))); in verifyAdapterChange()
475 withText("Body 1")))); in verifyAdapterChange()
489 withText("Body 2")))); in verifyAdapterChange()
503 withText("Body 3")))); in verifyAdapterChange()
544 allOf(withText(expectedStartTitle), isDisplayed(), startAlignedToParent())))); in verifyTitleStripLayout()
549 allOf(withText(expectedSelectedTitle), isDisplayed(), centerAlignedInParent())))); in verifyTitleStripLayout()
554 allOf(withText(expectedEndTitle), isDisplayed(), endAlignedToParent())))); in verifyTitleStripLayout()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAlertDialogTest.java133 onView(withText(expectedTitle)).inRoot(isDialog()).check(matches(isDisplayed())); in testBasicContent()
134 onView(withText(expectedMessage)).inRoot(isDialog()).check(matches(isDisplayed())); in testBasicContent()
135 onView(withText(expectedMessage)).inRoot(isDialog()).check( in testBasicContent()
136 isBelow(withText(expectedTitle))); in testBasicContent()
160 onView(withText(dialogMessage)).inRoot(isDialog()).check(matches(isDisplayed())); in testMessageString()
175 onView(withText(dialogInitialMessage)).inRoot(isDialog()).check(matches(isDisplayed())); in testMessageStringPostCreation()
185 onView(withText(dialogInitialMessage)).inRoot(isDialog()).check(doesNotExist()); in testMessageStringPostCreation()
187 onView(withText(dialogUpdatedMessage)).inRoot(isDialog()).check(matches(isDisplayed())); in testMessageStringPostCreation()
205 onView(withText(title)).inRoot(isDialog()).check(doesNotExist()); in verifyCustomTitle()
208 onView(withText(expectedCustomTitle)).inRoot(isDialog()).check( in verifyCustomTitle()
[all …]
DNightModeTestCase.java22 import static android.support.test.espresso.matcher.ViewMatchers.withText;
59 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY))); in testLocalDayNightModeRecreatesActivity()
72 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT))); in testLocalDayNightModeRecreatesActivity()
85 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_DAY))); in testNightModeAutoRecreatesOnTimeChange()
114 onView(withId(R.id.text_night_mode)).check(matches(withText(STRING_NIGHT))); in testNightModeAutoRecreatesOnTimeChange()
DAlertDialogCursorTest.java163 onView(withText("Dialog title")).inRoot(isDialog()).check(matches(isDisplayed())); in verifySimpleItemsContent()
251 onView(withText("Dialog title")).inRoot(isDialog()).check(matches(isDisplayed())); in verifyMultiChoiceItemsContent()
362 onView(withText("Dialog title")).inRoot(isDialog()).check(matches(isDisplayed())); in verifySingleChoiceItemsContent()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DPopupMenuTest.java28 import static android.support.test.espresso.matcher.ViewMatchers.withText;
119 onView(withText(mResources.getString(R.string.popup_menu_highlight))) in testBasicContent()
123 onView(withText(mResources.getString(R.string.popup_menu_edit))) in testBasicContent()
127 onView(withText(mResources.getString(R.string.popup_menu_delete))) in testBasicContent()
131 onView(withText(mResources.getString(R.string.popup_menu_ignore))) in testBasicContent()
135 onView(withText(mResources.getString(R.string.popup_menu_share))) in testBasicContent()
139 onView(withText(mResources.getString(R.string.popup_menu_print))) in testBasicContent()
144 onView(withText(mResources.getString(R.string.popup_menu_share_email))) in testBasicContent()
147 onView(withText(mResources.getString(R.string.popup_menu_share_circles))) in testBasicContent()
377 onView(withText(mResources.getString(R.string.popup_menu_delete)))
[all …]
DAppCompatSpinnerTest.java34 import static android.support.test.espresso.matcher.ViewMatchers.withText;
79 Matcher popupContentMatcher = hasChild(withText(itemText)); in verifySpinnerPopupTheming()
87 onView(withText(itemText)).perform(click()); in verifySpinnerPopupTheming()
DListPopupWindowTest.java103 onView(withText("Alice")) in testBasicContent()
106 onView(withText("Bob")) in testBasicContent()
109 onView(withText("Charlie")) in testBasicContent()
112 onView(withText("Deirdre")) in testBasicContent()
115 onView(withText("El")) in testBasicContent()
258 onView(withText("Charlie")) in testItemClickViaEvent()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DFloatingToolbarEspressoUtils.java28 import static android.support.test.espresso.matcher.ViewMatchers.withText;
109 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel)))); in assertFloatingToolbarContainsItem()
118 onFloatingToolBar().check(matches(hasDescendant(withText(itemLabel)))); in assertFloatingToolbarContainsItem()
147 onFloatingToolBarItem(withText(itemLabel)).check(matches(isDisplayed())); in clickFloatingToolbarItem()
152 onFloatingToolBarItem(withText(itemLabel)).perform(click()); in clickFloatingToolbarItem()
DSuggestionsPopupwindowUtils.java25 import static android.support.test.espresso.matcher.ViewMatchers.withText;
82 onSuggestionsPopupItem(withText(itemLabel)).check(matches(isDisplayed())); in assertSuggestionsPopupContainsItem()
91 onSuggestionsPopupItem(withText(itemLabel)).perform(new SuggestionItemClickAction()); in clickSuggestionsPopupItem()
DContextMenuUtils.java27 import static android.support.test.espresso.matcher.ViewMatchers.withText;
88 hasDescendant(withText(itemLabel)))))); in asssertContextMenuContainsItemWithEnabledState()
/frameworks/base/packages/Keyguard/scripts/
Dnew_merge.py130 def prepareFileForCompare(inFile, outFile, skip="", replace="", withText=""): argument
144 fout.write(line.replace(replace, withText))
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java27 import static android.support.test.espresso.matcher.ViewMatchers.withText;
175 onView(withId(R.id.textview)).check(matches(withText("abc DEF ghi"))); in testSuggestionItems()
188 onView(withId(R.id.textview)).check(matches(withText("abc ghi"))); in testSuggestionItems()
241 onView(withId(R.id.textview)).check(matches(withText("abc DEF ghi"))); in testEasyCorrect()
DTextViewActivityMouseTest.java44 import static android.support.test.espresso.matcher.ViewMatchers.withText;
164 onView(withId(R.id.textview)).check(matches(withText("abc ghi.def"))); in testDragAndDrop()
181 onView(withId(R.id.textview)).check(matches(withText("abc ghi.def"))); in testDragAndDrop_longClick()
DTextViewActivityTest.java45 import static android.support.test.espresso.matcher.ViewMatchers.withText;
81 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); in testTypedTextIsOnScreen()
93 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); in testPositionCursorAtTextAtIndex()
178 onView(withId(R.id.textview)).check(matches(withText("abc ghi.def"))); in testDragAndDrop()
187 onView(withId(R.id.textview)).check(matches(withText(text))); in testDragAndDrop()
/frameworks/base/docs/html/guide/topics/resources/
Dmenu-resource.jd46 android:showAsAction=["ifRoom" | "never" | "withText" | "always" | "collapseActionView"]
130 <tr><td><code>withText</code></td><td>Also include the title text (defined
266 android:showAsAction="ifRoom|withText"/>
279 android:showAsAction="ifRoom|withText" >
/frameworks/base/docs/html/training/testing/ui-testing/
Despresso-testing.jd232 .check(matches(withText(mStringToBetyped)));
361 onView(withText("Sign-in"));
387 onView(allOf(withId(R.id.button_signin), withText("Sign-in")));
392 onView(allOf(withId(R.id.button_signin), not(withText("Sign-out"))));
579 .check(matches(withText(STRING_TO_BE_TYPED)));
/frameworks/base/docs/html/training/testing/start/
Dindex.jd243 onView(withText("Say hello!")).perform(click());
245 onView(withId(R.id.textView)).check(matches(withText("Hello, World!")));
/frameworks/base/docs/html/guide/practices/
Dtablets-and-handsets.jd384 icon</strong>, when appropriate, and declare <code>showAsAction="ifRoom|withText"</code>.
390 "withText"}, because users can view the title as a "tool-tip" by performing a