Search in sources :

Example 1 with Counter

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());
}
Also used : Counter(org.w3c.dom.css.Counter) CSSPrimitiveValue(org.w3c.dom.css.CSSPrimitiveValue)

Aggregations

CSSPrimitiveValue (org.w3c.dom.css.CSSPrimitiveValue)1 Counter (org.w3c.dom.css.Counter)1