Package com.google.gxp.compiler.escape

Examples of com.google.gxp.compiler.escape.TypeError


    compile("<gxp:param name='p' content-type='text/plain'>",
            "  <gxp:attr name='default'>",
            "    <b>foo</b>",
            "  </gxp:attr>",
            "</gxp:param>");
    assertAlert(new TypeError(pos(4,5), "<b>", "text/html", "text/plain"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


    compile("<gxp:abbr name='a' content-type='text/plain'>",
            "  <gxp:attr name='expr'>",
            "    <b>foo</b>",
            "  </gxp:attr>",
            "</gxp:abbr>");
    assertAlert(new TypeError(pos(4,5), "<b>", "text/html", "text/plain"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

        "</gxp:template>");

    // bad call (not on javascript context)
    FileRef caller = createFile("caller", "<call:callee />");
    compileFiles(callee, caller);
    assertAlert(new TypeError(pos(2,1), "<call:callee>", "text/javascript", "text/html"));
    assertNoUnexpectedAlerts();

    // bad call (in an attribute that isn't javascript)
    caller = createFile("caller",
                        "<div>",
                        "  <gxp:attr name='title'>",
                        "    <call:callee />",
                        "  </gxp:attr>",
                        "</div>");
    compileFiles(callee, caller);
    assertAlert(new TypeError(pos(4,5), "<call:callee>", "text/javascript", "text/html"));
    assertNoUnexpectedAlerts();

    // good call (in javascript attribute)
    caller = createFile("caller",
                        "<div>",
View Full Code Here

                                "    <call:innerCallee/>",
                                "  </gxp:attr>",
                                "</call:outerCallee>");

    compileFiles(innerCallee, outerCallee, caller);
    assertAlert(new TypeError(pos(4,5), "<call:innerCallee>", "text/javascript", "text/html"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

                                "    <b>foo</b>",
                                "  </gxp:attr>",
                                "</call:callee>");
    compileFiles(callee, caller);

    assertAlert(new TypeError(pos(4,5), "<b>", "text/html", "text/plain"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    compile("<gxp:param name='p' content-type='text/plain'>",
            "  <gxp:attr name='default'>",
            "    <b>foo</b>",
            "  </gxp:attr>",
            "</gxp:param>");
    assertAlert(new TypeError(pos(4,5), "<b>", "text/html", "text/plain"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

        "</gxp:template>");

    // bad call (not on javascript context)
    FileRef caller = createFile("caller", "<call:callee />");
    compileFiles(callee, caller);
    assertAlert(new TypeError(pos(2,1), "<call:callee>", "text/javascript", "text/html"));
    assertNoUnexpectedAlerts();

    // bad call (in an attribute that isn't javascript)
    caller = createFile("caller",
                        "<div>",
                        "  <gxp:attr name='title'>",
                        "    <call:callee />",
                        "  </gxp:attr>",
                        "</div>");
    compileFiles(callee, caller);
    assertAlert(new TypeError(pos(4,5), "<call:callee>", "text/javascript", "text/html"));
    assertNoUnexpectedAlerts();

    // good call (in javascript attribute)
    caller = createFile("caller",
                        "<div>",
View Full Code Here

                                "    <call:innerCallee/>",
                                "  </gxp:attr>",
                                "</call:outerCallee>");

    compileFiles(innerCallee, outerCallee, caller);
    assertAlert(new TypeError(pos(4,5), "<call:innerCallee>", "text/javascript", "text/html"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

                                "    <b>foo</b>",
                                "  </gxp:attr>",
                                "</call:callee>");
    compileFiles(callee, caller);

    assertAlert(new TypeError(pos(4,5), "<b>", "text/html", "text/plain"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.escape.TypeError

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.