assertAlert(new IllegalScalaPrimitiveError(pos(5, 1), "bad", "boolean"));
assertNoUnexpectedAlerts();
}
public void testCall_badContentType() throws Exception {
FileRef callee = createFileNoHeader(
"callee",
"<!DOCTYPE gxp:template SYSTEM \"http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent\">",
"<gxp:template name='com.google.gxp.compiler.errortests.callee'",
" xmlns:gxp='http://google.com/2001/gxp'",
" content-type='text/javascript'>",
"</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)