mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-21 08:50:24 +00:00
test(jqLite): add test for mass assignment to style
This commit is contained in:
parent
986608fe76
commit
db78aa1ce1
1 changed files with 13 additions and 0 deletions
|
|
@ -266,6 +266,19 @@ describe('jqLite', function(){
|
|||
expect(jqLite(a).css('prop')).toBeFalsy();
|
||||
expect(jqLite(b).css('prop')).toBeFalsy();
|
||||
});
|
||||
|
||||
|
||||
it('should set a bunch of css properties specified via an object', function() {
|
||||
expect(jqLite(a).css('foo')).toBeFalsy();
|
||||
expect(jqLite(a).css('bar')).toBeFalsy();
|
||||
expect(jqLite(a).css('baz')).toBeFalsy();
|
||||
|
||||
jqLite(a).css({'foo': 'a', 'bar': 'b', 'baz': ''});
|
||||
|
||||
expect(jqLite(a).css('foo')).toBe('a');
|
||||
expect(jqLite(a).css('bar')).toBe('b');
|
||||
expect(jqLite(a).css('baz')).toBeFalsy();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue