rem: test("$.className", function() { expect(6); var x = $("<p>Hi</p>")[0]; var c = $.className; c.add(x, "hi"); ok( x.className == "hi", "Check single added class" ); c.add(x, "foo bar"); ok( x.className == "hi foo bar", "Check more added classes" ); c.remove(x); ok( x.className == "", "Remove all classes" ); c.add(x, "hi foo bar"); c.remove(x, "foo"); ok( x.className == "hi bar", "Check removal of one class" ); ok( c.has(x, "hi"), "Check has1" ); ok( c.has(x, "bar"), "Check has2" ); 
add: test("$.prop", function() { expect(2); var handle = function() { return this.id }; ok( $.prop($("#ap")[0], handle) == "ap", "Check with Function argument" ); ok( $.prop($("#ap")[0], "value") == "value", "Check with value argument" ); 
context: test("$.className", function() {	expect(6);	var x = $("<p>Hi</p>")[0];	var c = $.className;	c.add(x, "hi");	ok( x.className == "hi", "Check single added class" );	c.add(x, "foo bar");	ok( x.className == "hi foo bar", "Check more added classes" );	c.remove(x);	ok( x.className == "", "Remove all classes" );	c.add(x, "hi foo bar");	c.remove(x, "foo");	ok( x.className == "hi bar", "Check removal of one class" );	ok( c.has(x, "hi"), "Check has1" );	ok( c.has(x, "bar"), "Check has2" );});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/1ac9d6fbeed214d59ea5c31a87ff2c19bb08dbc8/core.js/clean/test/unit/core.js