Home
last modified time | relevance | path

Searched refs:hasItem (Results 1 – 12 of 12) sorted by relevance

/external/junit/src/org/junit/internal/matchers/
DIsCollectionContaining.java38 public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher) { in hasItem() method in IsCollectionContaining
43 public static <T> Matcher<Iterable<T>> hasItem(T element) { in hasItem() method in IsCollectionContaining
44 return hasItem(equalTo(element)); in hasItem()
52 all.add(hasItem(elementMatcher)); in hasItems()
62 all.add(hasItem(element)); in hasItems()
DEach.java4 import static org.junit.internal.matchers.IsCollectionContaining.hasItem;
11 final Matcher<Iterable<T>> allItemsAre = not(hasItem(not(individual))); in each()
/external/junit/src/org/junit/matchers/
DJUnitMatchers.java18 public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItem(T element) { in hasItem() method in JUnitMatchers
19 return IsCollectionContaining.hasItem(element); in hasItem()
26 …public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItem(org.hamcrest.Matcher<? exten… in hasItem() method in JUnitMatchers
27 return IsCollectionContaining.hasItem(elementMatcher); in hasItem()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DUriMatcherTest.java15 import static org.junit.matchers.JUnitMatchers.hasItem;
44 assertThat(node.map.keySet(), hasItem(AUTH)); in canAddBasicMatch()
47 assertThat(node.map.keySet(), hasItem("bar")); in canAddBasicMatch()
50 assertThat(node.map.keySet(), hasItem("cat")); in canAddBasicMatch()
DCameraParametersTest.java17 import static org.hamcrest.core.IsCollectionContaining.hasItem;
87 assertThat(supportedFormats, hasItem(ImageFormat.NV21)); in testGetSupportedPreviewFormats()
95 assertThat(supportedFormats, hasItem(new Integer(ImageFormat.NV21))); in testGetSupportedPictureFormats()
DContentResolverTest.java6 import static org.hamcrest.CoreMatchers.hasItem;
105 assertThat(shadowContentResolver.getDeletedUris(), hasItem(uri21)); in delete_shouldTrackDeletedUris()
109 assertThat(shadowContentResolver.getDeletedUris(), hasItem(uri22)); in delete_shouldTrackDeletedUris()
DCursorWrapperTest.java41 assertThat(cursorMethod.keySet(), hasItem(methodName)); in verifyForward()
/external/webkit/LayoutTests/http/tests/appcache/
Ddynamic-entries-no-cache.html-disabled82 applicationCache.hasItem('foo');
83 log("FAIL: hasItem didn't raise an exception");
86 log("PASS: hasItem raised INVALID_STATE_ERR");
88 log("FAIL: hasItem raised unexpected exception " + ex);
Ddynamic-entries-no-cache-expected.txt22 PASS: hasItem raised INVALID_STATE_ERR
/external/webkit/Source/WebCore/bindings/js/
DJSDOMApplicationCacheCustom.cpp47 JSValue JSDOMApplicationCache::hasItem(ExecState* exec) in hasItem() function in WebCore::JSDOMApplicationCache
55 bool result = impl()->hasItem(url, ec); in hasItem()
/external/webkit/Source/WebCore/
DChangeLog-2009-06-1613775 (WebCore::JSDOMApplicationCache::hasItem):
15454 (WebCore::JSDOMApplicationCache::hasItem):
52241 (WebCore::JSDOMApplicationCache::hasItem):
57078 * bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::hasItem):
57079 Added binding for hasItem(). Like other DOMApplicationCache methods, it needs to be custom
57099 hasItem convenience method.
57103 (WebCore::DOMApplicationCache::hasItem):
57105 … Added implementations of items attribute and hasItem() (note that underlying ApplicationCache
DChangeLog-2010-12-06131669 (WebCore::JSDOMApplicationCache::hasItem):