Package com.google.gdt.eclipse.designer.util

Examples of com.google.gdt.eclipse.designer.util.ModuleDescription


   * Test for {@link Utils#getCssResources(IFile)}.<br>
   * Use <code>stylesheet</code> element in module file.
   */
  @DisposeProjectAfter
  public void test_getCssResources_fromModule() throws Exception {
    ModuleDescription module = getTestModuleDescription();
    setFileContent(
        getTestModuleFile(),
        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
            "<module>",
View Full Code Here


   * Test for {@link Utils#getCssResources(IFile)}.<br>
   * Use path with leading "/" string.
   */
  @DisposeProjectAfter
  public void test_getCssResources_fromModule_fromRoot() throws Exception {
    ModuleDescription module = getTestModuleDescription();
    setFileContent("war/Module.html", "<html/>");
    setFileContent(
        getTestModuleFile(),
        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
View Full Code Here

   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.asp?46049
   */
  @DisposeProjectAfter
  public void test_getCssResources_fromModule_forFileInWar() throws Exception {
    ModuleDescription module = getTestModuleDescription();
    setFileContent("war/Module.html", "<html/>");
    setFileContent(
        getTestModuleFile(),
        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
View Full Code Here

   * Test for {@link Utils#getScriptResources(IFile)}.<br>
   * No scripts, because <code>.nocache.js</code> from HTML is ignored.
   */
  public void test_getScriptResources_1() throws Exception {
    assertThat(getFileContent("war/Module.html")).contains(".nocache.js");
    ModuleDescription moduleDescription = getTestModuleDescription();
    List<String> resources = Utils.getScriptResources(moduleDescription);
    assertThat(resources).isEmpty();
  }
View Full Code Here

   * Add references on new scripts from HTML and module file.
   */
  @DisposeProjectAfter
  public void test_getScriptResources_2() throws Exception {
    IFile moduleFile = getTestModuleFile();
    ModuleDescription moduleDescription = getTestModuleDescription();
    setFileContentSrc(
        "test/public/Module.html",
        getSourceDQ(
            "<html>",
            "  <body>",
View Full Code Here

   * http://fogbugz.instantiations.com/fogbugz/default.php?43650
   */
  @DisposeProjectAfter
  public void test_getScriptResources_ignoreGoogleMaps() throws Exception {
    IFile moduleFile = getTestModuleFile();
    ModuleDescription moduleDescription = getTestModuleDescription();
    setFileContentSrc("test/public/Module.html", "");
    setFileContent(
        moduleFile,
        getSource(
            "<module>",
View Full Code Here

   * Test for {@link Utils#getScriptResources(IFile)}.<br>
   * Use "script" tag without "src" attribute.
   */
  @DisposeProjectAfter
  public void test_getScriptResources_noSrcInScript() throws Exception {
    ModuleDescription moduleDescription = getTestModuleDescription();
    setFileContentSrc(
        "test/public/Module.html",
        getSourceDQ(
            "<html>",
            "  <body>",
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Test for {@link Utils#getDefaultLocale(IFile)}.
   */
  public void test_getDefaultLocale_noOverride() throws Exception {
    ModuleDescription module = getTestModuleDescription();
    // do check
    String defaultLocale = Utils.getDefaultLocale(module);
    assertEquals("default", defaultLocale);
  }
View Full Code Here

  /**
   * Test for {@link Utils#getDefaultLocale(IFile)}.
   */
  @DisposeProjectAfter
  public void test_getDefaultLocale_doOverride() throws Exception {
    ModuleDescription module = getTestModuleDescription();
    setFileContent(
        getTestModuleFile(),
        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
            "<module>",
View Full Code Here

              "  <set-property name='locale' value='en,es'/>",
              "  <set-property-fallback name='locale' value='en'/>",
              "</module>"));
    }
    // configure module
    ModuleDescription module = getTestModuleDescription();
    setFileContent(
        getTestModuleFile(),
        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
            "<module>",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.util.ModuleDescription

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.