diff options
| author | Igor Minar | 2011-09-15 05:36:00 +0200 | 
|---|---|---|
| committer | Igor Minar | 2011-09-16 02:44:33 +0200 | 
| commit | 7ae536d0532b7ad7859f9cf7e47b406f63383f29 (patch) | |
| tree | ef2f6721945e1c72d508c97b6775244a5a38a5bc /test/jqLiteSpec.js | |
| parent | 2170c06924b3a0dc1fef3b383d6a236e670dceea (diff) | |
| download | angular.js-7ae536d0532b7ad7859f9cf7e47b406f63383f29.tar.bz2 | |
fix(specs): various fixes to get IE8+jquery unit tests green
Diffstat (limited to 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 21 | 
1 files changed, 16 insertions, 5 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index 63ba24bf..f9102754 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -339,15 +339,26 @@ describe('jqLite', function(){        expect(jqLite(b).css('margin')).toEqual('3px');        selector.css('margin', ''); -      expect(jqLite(a).css('margin')).toBeFalsy(); -      expect(jqLite(b).css('margin')).toBeFalsy(); +      if (msie <= 8) { +        expect(jqLite(a).css('margin')).toBe('auto'); +        expect(jqLite(b).css('margin')).toBe('auto'); +      } else { +        expect(jqLite(a).css('margin')).toBeFalsy(); +        expect(jqLite(b).css('margin')).toBeFalsy(); +      }      });      it('should set a bunch of css properties specified via an object', function() { -      expect(jqLite(a).css('margin')).toBeFalsy(); -      expect(jqLite(a).css('padding')).toBeFalsy(); -      expect(jqLite(a).css('border')).toBeFalsy(); +      if (msie <= 8) { +        expect(jqLite(a).css('margin')).toBe('auto'); +        expect(jqLite(a).css('padding')).toBe('0px'); +        expect(jqLite(a).css('border')).toBeUndefined(); +      } else { +        expect(jqLite(a).css('margin')).toBeFalsy(); +        expect(jqLite(a).css('padding')).toBeFalsy(); +        expect(jqLite(a).css('border')).toBeFalsy(); +      }        jqLite(a).css({'margin': '1px', 'padding': '2px', 'border': ''});  | 
