Searched refs:urlSpans (Results 1 – 1 of 1) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 3308 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() local 3309 assertEquals("URLSpan count should be zero", 0, urlSpans.length); in testAppend_doesNotAddLinksWhenAppendedTextDoesNotContainLinks() 3322 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() local 3323 assertEquals("URLSpan count should be zero", 0, urlSpans.length); in testAppend_doesNotAddLinksWhenAutoLinkIsNotEnabled() 3337 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksWhenAutoLinkIsEnabled() local 3338 assertEquals("URLSpan count should be one after appending a URL", 1, urlSpans.length); in testAppend_addsLinksWhenAutoLinkIsEnabled() 3340 urlSpans[0].getURL(), "http://android.com"); in testAppend_addsLinksWhenAutoLinkIsEnabled() 3354 URLSpan[] urlSpans = text.getSpans(0, text.length(), URLSpan.class); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() local 3355 assertEquals("URLSpan count should be two after appending another URL", 2, urlSpans.length); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() 3357 urlSpans[0].getURL(), "http://android.com/before"); in testAppend_addsLinksEvenWhenThereAreUrlsSetBefore() [all …]
|