Changed error handling so that better stack traces are displayed in the ng-errors

This commit is contained in:
Misko Hevery
2010-11-16 13:57:41 -08:00
committed by Igor Minar
parent 4af32de84a
commit b2d63ac48b
14 changed files with 144 additions and 102 deletions

View File

@@ -168,7 +168,7 @@ describe("directives", function(){
var log = "";
log += element.attr('ng-exception') + ';';
log += element.hasClass('ng-exception') + ';';
expect(log).toEqual("\"Expected ng:repeat in form of 'item in collection' but got 'i dont parse'.\";true;");
expect(log.match(/Expected ng:repeat in form of 'item in collection' but got 'i dont parse'./)).toBeTruthy();
});
it('should expose iterator offset as $index when iterating over arrays', function() {