Package com.google.gxp.compiler.validate

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


    // test no gxp:param with that name
    FileRef caller = createFile("caller",
                                "<call:callee gxp:bundles='bundle'/>");
    compileFiles(callee, caller);
    assertAlert(new InvalidAttrBundleError(pos(2, 1), "<call:callee>", "bundle"));
    assertNoUnexpectedAlerts();

    // test gxp:param with wrong type
    caller = createFile("caller",
                        "<gxp:param name='bundle' type='String' />",
                        "<call:callee gxp:bundles='bundle'/>");
    compileFiles(callee, caller);
    assertAlert(new InvalidAttrBundleError(pos(3, 1), "<call:callee>", "bundle"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


  }

  public void testOutputElement_invalidBundle() throws Exception {
    // test no gxp:param with that name
    compile("<div gxp:bundles='bundle'></div>");
    assertAlert(new InvalidAttrBundleError(pos(2, 1), "<div>", "bundle"));
    assertNoUnexpectedAlerts();

    // test gxp:param with wrong type
    compile("<gxp:param name='bundle' type='String' />",
            "<div gxp:bundles='bundle'></div>");
    assertAlert(new InvalidAttrBundleError(pos(3, 1), "<div>", "bundle"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

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

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.