Package org.apache.flex.compiler.css

Examples of org.apache.flex.compiler.css.ICSSDocument


      "    CheckBox { font-size: 16 }",
      "</fx:Style>"
    };
    IMXMLStyleNode node = getMXMLStyleNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    ICSSDocument css = node.getCSSDocument(null);
    ImmutableList<ICSSRule> rules = css.getRules();
    assertThat("rules", rules.size(), is(2));
    assertThat("rule 0 name", rules.get(0).getSelectorGroup().get(0).getElementName(), is("Button"));
    assertThat("rule 1 name", rules.get(1).getSelectorGroup().get(0).getElementName(), is("CheckBox"));
  }
View Full Code Here


      "    @namespace \"library://ns.adobe.com/flex/mx\";",
      "</fx:Style>"
    };
    IMXMLStyleNode node = getMXMLStyleNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    ICSSDocument css = node.getCSSDocument(null);
    ImmutableList<ICSSNamespaceDefinition> namespaces = css.getAtNamespaces();
    assertThat("namespaces", namespaces.size(), is(2));
    assertThat("namespace 0 prefix ", namespaces.get(0).getPrefix(), is((String)null));
    assertThat("namespace 0 uri", namespaces.get(0).getURI(), is("library://ns.adobe.com/flex/mx"));
    assertThat("namespace 1 prefix", namespaces.get(1).getPrefix(), is((String)null));
    assertThat("namespace 1 uri", namespaces.get(1).getURI(), is("library://ns.adobe.com/flex/mx"));
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.css.ICSSDocument

Copyright © 2018 www.massapicom. 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.