diff options
| author | Vojta Jina | 2011-06-02 20:15:43 +0200 | 
|---|---|---|
| committer | Igor Minar | 2011-06-02 12:51:12 -0700 | 
| commit | 9a6967755116f14b6f27fc00b5976b58f0bc6fcd (patch) | |
| tree | 18aaeaff178f7cb3dd8dd92917c2195b384f542e /test/BinderSpec.js | |
| parent | b6db58c6472002cd81821a106816398942d4d0a4 (diff) | |
| download | angular.js-9a6967755116f14b6f27fc00b5976b58f0bc6fcd.tar.bz2 | |
Fix CSS tests on Opera
Opera translates name colors to numbers (red -> #ff0000)
Other browsers like FF or Chrome translate number to rgb (#ff0000 -> rgb(255, 0, 0)
So avoiding colors in tests is probably the easiest solution...
Diffstat (limited to 'test/BinderSpec.js')
| -rw-r--r-- | test/BinderSpec.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/test/BinderSpec.js b/test/BinderSpec.js index e78980d7..dfa388e3 100644 --- a/test/BinderSpec.js +++ b/test/BinderSpec.js @@ -425,10 +425,10 @@ describe('Binder', function(){    it('BindStyle', function(){      var scope = this.compile('<div ng:style="style"/>'); -    scope.$eval('style={color:"red"}'); +    scope.$eval('style={height: "10px"}');      scope.$eval(); -    assertEquals("red", scope.$element.css('color')); +    assertEquals("10px", scope.$element.css('height'));      scope.$eval('style={}');      scope.$eval(); | 
