Package com.google.gwt.resources.client.gss.TestResources

Examples of com.google.gwt.resources.client.gss.TestResources.ExternalClasses


  /**
   * Test that style classes mentioned as external are not obfuscated.
   */
  public void testExternalClasses() {
    ExternalClasses externalClasses = res().externalClasses();

    assertNotSame("obfuscatedClass", externalClasses.obfuscatedClass());

    assertEquals("externalClass", externalClasses.externalClass());
    assertEquals("externalClass2", externalClasses.externalClass2());
    assertEquals("unobfuscated", externalClasses.unobfuscated());
    assertEquals("unobfuscated2", externalClasses.unobfuscated2());

    String css = externalClasses.getText();

    // external at-rule shouldn't be printed
    assertFalse(css.contains("@external"));
    String expectedCss = "." +  externalClasses.obfuscatedClass() + "{width:100%}" +
        ".externalClass,.externalClass2,.unobfuscated{height:50px}" +
        ".unobfuscated-with-prefix-without-method{width:15px}" +
        ".unobfuscated2{height:50px}" +
        ".externalWithoutMethod{color:white}";

View Full Code Here

TOP

Related Classes of com.google.gwt.resources.client.gss.TestResources.ExternalClasses

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.