Package com.google.gxp.compiler.i18ncheck

Examples of com.google.gxp.compiler.i18ncheck.UnextractableContentAlert


  }

  public void testBase_text() throws Exception {
    compile("hello, world!");
    // position is fragile because text starts right after gxp:template. :-(
    assertAlert(new UnextractableContentAlert(pos(1, 652), "text"));

    assertNoUnexpectedAlerts();
  }
View Full Code Here


  public void testBase_paramDefault() throws Exception {
    compile("<gxp:param name='foo' type='bar'>",
            "<gxp:attr name='default'>unextractable default value</gxp:attr>",
            "</gxp:param>");
    assertAlert(new UnextractableContentAlert(pos(3, 26), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    assertNoUnexpectedAlerts();
  }

  public void testBase_outputElementVisibleAttr() throws Exception {
    compile("<td abbr='visible-attribute-value'/>");
    assertAlert(new UnextractableContentAlert(pos(2, 1), "'abbr' attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    compile("<td>",
            "<gxp:attr name='abbr'>",
            "visible-attribute-value",
            "</gxp:attr>",
            "</td>");
    assertAlert(new UnextractableContentAlert(pos(3, 23), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    assertNoUnexpectedAlerts();
  }

  public void testBase_outputElementContent() throws Exception {
    compile("<div>foo</div>");
    assertAlert(new UnextractableContentAlert(pos(2, 6), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testBase_callVisibleBundleAttr() throws Exception {
    compile(
        "<gxp:param name='bundle1' gxp:type='bundle' from-element='div'/>",
        "<" + getMyTagName() + " title='visible-attribute-value'/>");
    assertAlert(new UnextractableContentAlert(pos(3, 1), "'title' attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

        "<" + getMyTagName() + ">",
        "<gxp:attr name='title'>",
        "visible-attribute-value",
        "</gxp:attr>",
        "</" + getMyTagName() + ">");
    assertAlert(new UnextractableContentAlert(pos(4, 24), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testInMsg_outputElementVisibleAttr() throws Exception {
    compile("<gxp:msg>",
            "<td abbr='visible-attribute-value'/>",
            "</gxp:msg>");
    assertAlert(new UnextractableContentAlert(pos(3, 1), "'abbr' attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testInPlaceholder_text() throws Exception {
    compile("<gxp:msg>",
            "<gxp:ph name='p'/>hello, world!<gxp:eph/>",
            "</gxp:msg>");
    assertAlert(new UnextractableContentAlert(pos(3, 19), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testInPlaceholder_outputElementVisibleAttr() throws Exception {
    compile("<gxp:msg>",
            "<gxp:ph name='p'/><td abbr='visible-attribute-value'/><gxp:eph/>",
            "</gxp:msg>");
    assertAlert(new UnextractableContentAlert(pos(3, 19), "'abbr' attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.i18ncheck.UnextractableContentAlert

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.