Package com.google.gxp.compiler.i18ncheck

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


    assertNoUnexpectedAlerts();
  }

  public void testNoMsg_whenNotVisible() throws Exception {
    compile("<div><gxp:attr name='id'><gxp:nomsg>foo</gxp:nomsg></gxp:attr></div>");
    assertAlert(new UnnecessaryNomsgWarning(pos(2,26), "<gxp:nomsg>"));
    assertNoUnexpectedAlerts();

    compile("<div nomsg:id='foo' />");
    assertAlert(new UnnecessaryNomsgWarning(
                    pos(2,1), "http://google.com/2001/gxp/nomsg namespace on id attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


    assertNoUnexpectedAlerts();
  }

  public void testNoMsg_whenNotVisible() throws Exception {
    compile("<div><gxp:attr name='id'><gxp:nomsg>foo</gxp:nomsg></gxp:attr></div>");
    assertAlert(new UnnecessaryNomsgWarning(pos(2,26), "<gxp:nomsg>"));
    assertNoUnexpectedAlerts();

    compile("<div nomsg:id='foo' />");
    assertAlert(new UnnecessaryNomsgWarning(
                    pos(2,1), "http://google.com/2001/gxp/nomsg namespace on id attribute"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

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

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.