Package com.google.gxp.compiler.validate

Examples of com.google.gxp.compiler.validate.DuplicateParameterNameError


            "<gxp:param name='bundle2' gxp:type='bundle'",
            "  from-element='div'",
            "  exclude='onclick,ondblclick,onmousedown,onmouseup,onmouseover,",
            "           onmousemove,onmouseout,onkeypress,onkeydown,",
            "           onkeyup,onscroll,oncontextmenu' />");
    assertAlert(new DuplicateParameterNameError(pos(6,1), "id"));
    assertNoUnexpectedAlerts();

    // test bundle conflicting with standard
    compile("<gxp:param name='bundle' gxp:type='bundle'",
            "           from-element='div' />",
            "<gxp:param name='id' type='String' />");
    assertAlert(new DuplicateParameterNameError(pos(4,1), "id"));
    assertNoUnexpectedAlerts();

    // test bundle conflicting with standard (reversed from above)
    compile("<gxp:param name='id' type='String' />",
            "<gxp:param name='bundle' gxp:type='bundle'",
            "           from-element='div' />");
    assertAlert(new DuplicateParameterNameError(pos(3,1), "id"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


  public void testParam_duplicateName() throws Exception {
    // standard param
    compileInterface("<gxp:param name='foo' type='String' />",
                     "<gxp:param name='foo' type='String' />");
    assertAlert(new DuplicateParameterNameError(pos(3,1), "foo"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testParam_duplicateName() throws Exception {
    // standard param
    compile("<gxp:param name='foo' type='String' />",
            "<gxp:param name='foo' type='String' />");
    assertAlert(new DuplicateParameterNameError(pos(3,1), "foo"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    compile("<gxp:constructor>",
            "  <gxp:param name='foo' type='String' />",
            "</gxp:constructor>",
            "",
            "<gxp:param name='foo' type='String' />");
    assertAlert(new DuplicateParameterNameError(pos(6,1), "foo"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  public void testParam_duplicateName() throws Exception {
    // standard param
    compile("<gxp:param name='foo' type='String' />",
            "<gxp:param name='foo' type='String' />");
    assertAlert(new DuplicateParameterNameError(pos(3,1), "foo"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.validate.DuplicateParameterNameError

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.