Please see this site: http://api.qunitjs.com/throws/
The throws instruction is interpreted as an error by jsparser in visual studio
2010 :
test( "throws", function() {
function CustomError( message ) {
this.message = message;
}
CustomError.prototype.toString = function() {
return this.message;
};
throws(
function() {
throw "error"
},
"throws with just a message, no expected"
);
throws(
function() {
throw new CustomError();
},
CustomError,
"raised error is an instance of CustomError"
);
throws(
function() {
throw new CustomError("some error description");
},
/description/,
"raised error message contains 'description'"
);
});
Original issue reported on code.google.com by jeanp...@gmail.com on 20 Feb 2014 at 8:43
Original issue reported on code.google.com by
jeanp...@gmail.com
on 20 Feb 2014 at 8:43