Home | History | Annotate | Download | only in text

Lines Matching defs:spans

135     /** Fail unless text+spans contains a span 'spanName' with the given start and end. */
136 private void checkContains(Spanned text, String[] spans, String spanName,
138 for (String i: spans) {
152 String[] spans;
164 spans = result.getSpans(0, result.length(), String.class);
167 assertEquals(4, spans.length);
168 checkContains(result, spans, "before", 0, 1);
169 checkContains(result, spans, "during", 1, 4);
170 checkContains(result, spans, "after", 4, 5);
171 checkContains(result, spans, "during+after", 1, 5);
178 spans = result.getSpans(0, result.length(), String.class);
181 assertEquals(3, spans.length);
182 checkContains(result, spans, "before", 0, 1);
183 checkContains(result, spans, "after", 1, 2);
184 checkContains(result, spans, "during+after", 1, 2);