Package com.google.gxp.compiler.i18ncheck

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


        "<" + 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

  public void testInPlaceholder_outputElementContent() throws Exception {
    compile("<gxp:msg>",
            "<gxp:ph name='p'/><div>foo</div><gxp:eph/>",
            "</gxp:msg>");
    assertAlert(new UnextractableContentAlert(pos(3, 24), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    compile("<gxp:param name='body' content='*' />",
            "",
            "<call:TestInMsgInCall_text>",
            "  text",
            "</call:TestInMsgInCall_text>");
    assertAlert(new UnextractableContentAlert(pos(4, 28), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    compile("<gxp:msg>",
            "<gxp:ph name='p' example='x'/>"
            + "<gxp:msg><td abbr='visible-attribute-value'/></gxp:msg>"
            + "<gxp:eph/>",
            "</gxp:msg>");
    assertAlert(new UnextractableContentAlert(pos(3, 40), "'abbr' attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  }

  public void testPlaintext() throws Exception {
    extraHeaders.add("content-type='text/plain'");
    compile("alert('hello, world!');");
    assertAlert(new UnextractableContentAlert(pos(1, 730), "text"));
    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.