Package com.google.gdt.eclipse.designer.model.module

Examples of com.google.gdt.eclipse.designer.model.module.ScriptElement


        "<module>",
        "  <script src='some.url'/>",
        "</module>"});
    assertThat(m_module.getChildren()).hasSize(1);
    // prepare single "<script>" element
    ScriptElement scriptElement;
    {
      List<ScriptElement> scriptElements = m_module.getScriptElements();
      assertThat(scriptElements).hasSize(1);
      scriptElement = scriptElements.get(0);
    }
    // current "src" value
    assertEquals("some.url", scriptElement.getSrc());
    // set new "src" value
    {
      scriptElement.setSrc("new.url");
      assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.url", "new.url"));
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.module.ScriptElement

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.