1
describe('CSSOM', function() {
2
describe('MediaList', function() {
4
it('appendMedium, deleteMedium, mediaText', function() {
5
var m = new CSSOM.MediaList;
6
expect(m.length).toBe(0);
8
m.appendMedium("handheld");
9
m.appendMedium("screen");
10
m.appendMedium("only screen and (max-device-width: 480px)");
12
m.deleteMedium("screen");
14
expect(m[2]).toBeUndefined();
18
1: "only screen and (max-device-width: 480px)",
22
expect(m).toEqualOwnProperties(expected);
23
expect(m.mediaText).toBe([].join.call(expected, ", "));