aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorIgor Minar2011-09-15 00:47:15 +0200
committerIgor Minar2011-09-16 02:44:32 +0200
commit0e5a24c584d88b17297010676b8e0005b3545efd (patch)
tree7a7e1a75b4c6fcb382b340d90cddef0913f5c325 /test/widgetsSpec.js
parent4e8f0d6e9ff1b852de9de9da72d0fac138bcd1a7 (diff)
downloadangular.js-0e5a24c584d88b17297010676b8e0005b3545efd.tar.bz2
fix(specs): jQuery now returns attr name instead of true/false for special attrs
for special attrs like 'checked' or 'multiple', jquery now returns the name or undedefined. e.g. foo.attr('checked') => 'checked' || undefined The solution is a combination of updating our tests as well as switching over to prop() instead which properly returns true/false
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 6d6e47c6..6fccaa48 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -957,8 +957,8 @@ describe("widget", function(){
scope.selected = [];
scope.$digest();
expect(select.find('option').length).toEqual(2);
- expect(jqLite(select.find('option')[0]).attr('selected')).toEqual(false);
- expect(jqLite(select.find('option')[1]).attr('selected')).toEqual(false);
+ expect(select.find('option')[0].selected).toBe(false);
+ expect(select.find('option')[1].selected).toBe(false);
scope.selected.push(scope.values[1]);
scope.$digest();