aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-25 22:07:36 -0700
committerMisko Hevery2010-03-25 22:07:36 -0700
commit1990cbbf2817e04657ccd616da1d9d6b78cc2949 (patch)
tree9c38bfd08ab0e42f362f8d8df39c47f06c13098f /test/widgetsSpec.js
parentd934054cfc22325d817eb0643dc061f9d212804d (diff)
downloadangular.js-1990cbbf2817e04657ccd616da1d9d6b78cc2949.tar.bz2
added few extra tests
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 7c9ea04a..d6c44f68 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -172,15 +172,19 @@ describe("input widget", function(){
});
it('should report error on missing field', function(){
- //compile('<input type="text"/>');
+ compile('<input type="text"/>');
+ expect(element.hasClass('ng-exception')).toBeTruthy();
});
it('should report error on assignment error', function(){
-
+ compile('<input type="text" name="1-2" value="x"/>');
+ expect(element.hasClass('ng-exception')).toBeTruthy();
});
it('should report error on ng-action exception', function(){
-
+ compile('<button ng-action="a-2=x">click</button>');
+ element.click();
+ expect(element.hasClass('ng-exception')).toBeTruthy();
});