use of org.w3c.dom.css.Counter in project webtools.sourceediting by eclipse.
the class AbstractModelTest method checkPrimitiveCounter.
/* for counter */
protected void checkPrimitiveCounter(CSSValue actual, String identifier, String listStyle, String separator) {
assertTrue(actual instanceof CSSPrimitiveValue);
assertEquals(CSSPrimitiveValue.CSS_COUNTER, ((CSSPrimitiveValue) actual).getPrimitiveType());
Counter counter = ((CSSPrimitiveValue) actual).getCounterValue();
assertEquals(identifier, counter.getIdentifier());
assertEquals(listStyle, counter.getListStyle());
assertEquals(separator, counter.getSeparator());
}
Aggregations