Examples of cssPropertyToData()


Examples of com.google.caja.lang.css.CssPropertyPatterns.cssPropertyToData()

  public final void testLiteralExtraction() {
    CssPropertyPatterns pp = new CssPropertyPatterns(
        CssSchema.getDefaultCss21Schema(mq));
    String text = "[ foo || bar() ]";
    CssPropertyData actual = pp.cssPropertyToData("test", parseSignature(text));
    assertEquals("test", actual.key);
    assertEquals(actual.fns.toString(), 1, actual.fns.size());
    assertEquals("bar", actual.fns.iterator().next().getName());

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.