Sha256: 7ddddf0a8037e12d6038c537ba820e22cfa08cf0e407f3052d27141b5c5bb209

Contents?: true

Size: 458 Bytes

Versions: 25

Compression:

Stored size: 458 Bytes

Contents

test("MediaList", function(){
	var m = new CSSOM.MediaList;
	strictEqual(m.length, 0);

	m.appendMedium("handheld");
	m.appendMedium("screen");
	m.appendMedium("only screen and (max-device-width: 480px)");

	m.deleteMedium("screen");

	strictEqual(m[2], undefined);

	var expected = {
		0: "handheld",
		1: "only screen and (max-device-width: 480px)",
		length: 2
	};

	equalOwnProperties(m, expected);
	equal(m.mediaText, [].join.call(expected, ", "));
});

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
stylus-source-0.19.1 vendor/node_modules/cssom/test/MediaList.test.js
stylus-source-0.19.0 vendor/node_modules/cssom/test/MediaList.test.js
stylus-source-0.18.0 vendor/node_modules/cssom/test/MediaList.test.js
stylus-source-0.17.0 vendor/node_modules/cssom/test/MediaList.test.js
stylus-source-0.15.4 lib/node_modules/cssom/test/MediaList.test.js