Examples of UnextractableContentAlert


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

  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

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

    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

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

    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

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

  }

  public void testPlaintext() throws Exception {
    extraHeaders.add("content-type='text/plain'");
    compile("alert('hello, world!');");
    assertAlert(new UnextractableContentAlert(pos(1, 678), "text"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

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, 704), "text"));

    assertNoUnexpectedAlerts();
  }
View Full Code Here

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

  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

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

    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

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

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

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

    assertNoUnexpectedAlerts();
  }

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

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

  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
TOP
Copyright © 2018 www.massapi.com. 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.