aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-14 17:48:09 -0700
committerMisko Hevery2010-07-14 17:48:09 -0700
commit17d2ced9cc7e45d1d7272a1217861e598e5522dd (patch)
tree025484db26066cb047fc1d9041d7a3b68d17082c /test/directivesSpec.js
parente3e9ac86750b20fb8ad6765011e06d569899612d (diff)
downloadangular.js-17d2ced9cc7e45d1d7272a1217861e598e5522dd.tar.bz2
appease IE on CSS styles
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 8ce949aa..a42faa9a 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -184,13 +184,13 @@ describe("directives", function(){
it('should preserve and remove previus style', function(){
var scope = compile('<div style="color:red;" ng:style="myStyle"></div>');
scope.$eval();
- expect(element.css()).toEqual({color:'red'});
+ expect(getStyle(element)).toEqual({color:'red'});
scope.myStyle = {color:'blue', width:'10px'};
scope.$eval();
- expect(element.css()).toEqual({color:'blue', width:'10px'});
+ expect(getStyle(element)).toEqual({color:'blue', width:'10px'});
scope.myStyle = {};
scope.$eval();
- expect(element.css()).toEqual({color:'red'});
+ expect(getStyle(element)).toEqual({color:'red'});
});
});