Package com.google.gxp.compiler.js

Examples of com.google.gxp.compiler.js.LoopRequiresIterableInJavaScriptError


    assertAlert(new MissingExpressionError(pos(2,1), "'iterable' attribute", "Java"));
    assertNoUnexpectedAlerts();

    // iterator tests
    compile("<gxp:loop var='v' type='t' iterator='e' />");
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' expr:iterator='e' />");
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' iterator='e' java:iterator='e' />");
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' cpp:iterator='e' />");
    assertAlert(new MissingExpressionError(pos(2, 1), "'iterator' attribute", "Java"));
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' js:iterator='e' />");
    assertAlert(new UnknownAttributeError("<gxp:loop>", pos(2, 1), "'js:iterator' attribute"));
    assertNoUnexpectedAlerts();
View Full Code Here


  private boolean testingInvalidIterator = false;

  @Override
  protected void assertAdditionalAlerts() {
    if (testingInvalidIterator) {
      assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2,1), "<gxp:loop>"));
    }
  }
View Full Code Here

    assertAlert(new MissingExpressionError(pos(2,1), "'iterable' attribute", "Scala"));
    assertNoUnexpectedAlerts();

    // iterator tests
    compile("<gxp:loop var='v' type='t' iterator='e' />");
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' expr:iterator='e' />");
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' iterator='e' java:iterator='e' />");
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' cpp:iterator='e' />");
    assertAlert(new MissingExpressionError(pos(2, 1), "'iterator' attribute", "Java"));
    assertAlert(new MissingExpressionError(pos(2, 1), "'iterator' attribute", "Scala"));
    assertAlert(new LoopRequiresIterableInJavaScriptError(pos(2, 1), "<gxp:loop>"));
    assertNoUnexpectedAlerts();

    compile("<gxp:loop var='v' type='t' js:iterator='e' />");
    assertAlert(new UnknownAttributeError("<gxp:loop>", pos(2, 1), "'js:iterator' attribute"));
    assertNoUnexpectedAlerts();
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.js.LoopRequiresIterableInJavaScriptError

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.