aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-07 10:29:47 -0700
committerMisko Hevery2010-04-07 10:29:47 -0700
commit82cb18db28ea7381e5168489207bfa23c059af0c (patch)
treeb4710ab1c2c0593ca9228cbb67495846d72d696e /test/directivesSpec.js
parent0df93fd49c1687b2eddaa79faa1c0adbef82bf72 (diff)
parentee327a1f4f75f57c2a2c6166520c092d4942ffe0 (diff)
downloadangular.js-82cb18db28ea7381e5168489207bfa23c059af0c.tar.bz2
Merge branch 'directives' of github.com:angular/angular.js into directives
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 74aa942b..ea442d16 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -142,19 +142,19 @@ describe("directives", function(){
it('should ng-show', function(){
var scope = compile('<div ng-hide="hide"></div>');
scope.$eval();
- expect(element.css('display')).toEqual('');
+ expect(isVisible(element)).toEqual(true);
scope.$set('hide', true);
scope.$eval();
- expect(element.css('display')).toEqual('none');
+ expect(isVisible(element)).toEqual(false);
});
it('should ng-hide', function(){
var scope = compile('<div ng-show="show"></div>');
scope.$eval();
- expect(element.css('display')).toEqual('none');
+ expect(isVisible(element)).toEqual(false);
scope.$set('show', true);
scope.$eval();
- expect(element.css('display')).toEqual('');
+ expect(isVisible(element)).toEqual(true);
});
it('should ng-controller', function(){