aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-30 14:55:04 -0700
committerMisko Hevery2010-03-30 14:55:04 -0700
commita7d62dcb5533ceb9a7ae47ee27e2054400a0196b (patch)
tree4c3702dbf899a8c669b833157b86a883c55d77ba /test/widgetsSpec.js
parentd2d356918bd1c0c76673d22ff85c617fbd85d40e (diff)
downloadangular.js-a7d62dcb5533ceb9a7ae47ee27e2054400a0196b.tar.bz2
more tests fixed
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 152b01f3..d041220b 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -14,10 +14,8 @@ describe("input widget", function(){
});
afterEach(function(){
- if (element) element.remove();
- var oldCache = jqCache;
- jqCache = {};
- expect(size(oldCache)).toEqual(0);
+ if (element && element.dealoc) element.dealoc();
+ expect(size(jqCache)).toEqual(0);
});
it('should input-text auto init and handle keyup/change events', function(){
@@ -179,7 +177,7 @@ describe("input widget", function(){
});
it('should report error on assignment error', function(){
- compile('<input type="text" name="1-2" value="x"/>');
+ compile('<input type="text" name="throw \'\'" value="x"/>');
expect(element.hasClass('ng-exception')).toBeTruthy();
});