rem: test("is(String)", function() { expect(26); ok( $('#form').is('form'), 'Check for element: A form must be a form' ); ok( !$('#form').is('div'), 'Check for element: A form is not a div' ); ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' ); ok( !$('#mark').is('.link'), 'Check for class: Did not expect class "link"' ); ok( $('#simon').is('.blog.link'), 'Check for multiple classes: Expected classes "blog" and "link"' ); ok( !$('#simon').is('.blogTest'), 'Check for multiple classes: Expected classes "blog" and "link", but not "blogTest"' ); ok( $('#en').is('[lang="en"]'), 'Check for attribute: Expected attribute lang to be "en"' ); ok( !$('#en').is('[lang="de"]'), 'Check for attribute: Expected attribute lang to be "en", not "de"' ); ok( $('#text1').is('[type="text"]'), 'Check for attribute: Expected attribute type to be "text"' ); ok( !$('#text1').is('[type="radio"]'), 'Check for attribute: Expected attribute type to be "text", not "radio"' ); ok( $('#text2').is(':disabled'), 'Check for pseudoclass: Expected to be disabled' ); ok( !$('#text1').is(':disabled'), 'Check for pseudoclass: Expected not disabled' ); ok( $('#radio2').is(':checked'), 'Check for pseudoclass: Expected to be checked' ); ok( !$('#radio1').is(':checked'), 'Check for pseudoclass: Expected not checked' ); ok( $('#foo').is(':has(p)'), 'Check for child: Expected a child "p" element' ); ok( !$('#foo').is(':has(ul)'), 'Check for child: Did not expect "ul" element' ); ok( $('#foo').is(':has(p):has(a):has(code)'), 'Check for childs: Expected "p", "a" and "code" child elements' ); ok( !$('#foo').is(':has(p):has(a):has(code):has(ol)'), 'Check for childs: Expected "p", "a" and "code" child elements, but no "ol"' ); ok( !$('#foo').is(0), 'Expected false for an invalid expression - 0' ); ok( !$('#foo').is(null), 'Expected false for an invalid expression - null' ); ok( !$('#foo').is(''), 'Expected false for an invalid expression - ""' ); ok( !$('#foo').is(undefined), 'Expected false for an invalid expression - undefined' );   ok( $('#en').is('[lang="en"],[lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' ); ok( $('#en').is('[lang="de"],[lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' ); ok( $('#en').is('[lang="en"] , [lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' ); ok( $('#en').is('[lang="de"] , [lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' ); 
add: test("clone()", function() { expect(3); ok( 'This is a normal link: Yahoo' == $('#en').text(), 'Assert text for #en' ); var clone = $('#yahoo').clone(); ok( 'Try them out:Yahoo' == $('#first').append(clone).text(), 'Check for clone' ); ok( 'This is a normal link: Yahoo' == $('#en').text(), 'Reassert text for #en' ); 
context: test("is(String)", function() {	expect(26);	ok( $('#form').is('form'), 'Check for element: A form must be a form' );	ok( !$('#form').is('div'), 'Check for element: A form is not a div' );	ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' );	ok( !$('#mark').is('.link'), 'Check for class: Did not expect class "link"' );	ok( $('#simon').is('.blog.link'), 'Check for multiple classes: Expected classes "blog" and "link"' );	ok( !$('#simon').is('.blogTest'), 'Check for multiple classes: Expected classes "blog" and "link", but not "blogTest"' );	ok( $('#en').is('[lang="en"]'), 'Check for attribute: Expected attribute lang to be "en"' );	ok( !$('#en').is('[lang="de"]'), 'Check for attribute: Expected attribute lang to be "en", not "de"' );	ok( $('#text1').is('[type="text"]'), 'Check for attribute: Expected attribute type to be "text"' );	ok( !$('#text1').is('[type="radio"]'), 'Check for attribute: Expected attribute type to be "text", not "radio"' );	ok( $('#text2').is(':disabled'), 'Check for pseudoclass: Expected to be disabled' );	ok( !$('#text1').is(':disabled'), 'Check for pseudoclass: Expected not disabled' );	ok( $('#radio2').is(':checked'), 'Check for pseudoclass: Expected to be checked' );	ok( !$('#radio1').is(':checked'), 'Check for pseudoclass: Expected not checked' );	ok( $('#foo').is(':has(p)'), 'Check for child: Expected a child "p" element' );	ok( !$('#foo').is(':has(ul)'), 'Check for child: Did not expect "ul" element' );	ok( $('#foo').is(':has(p):has(a):has(code)'), 'Check for childs: Expected "p", "a" and "code" child elements' );	ok( !$('#foo').is(':has(p):has(a):has(code):has(ol)'), 'Check for childs: Expected "p", "a" and "code" child elements, but no "ol"' );	ok( !$('#foo').is(0), 'Expected false for an invalid expression - 0' );	ok( !$('#foo').is(null), 'Expected false for an invalid expression - null' );	ok( !$('#foo').is(''), 'Expected false for an invalid expression - ""' );	ok( !$('#foo').is(undefined), 'Expected false for an invalid expression - undefined' );		// test is() with comma-seperated expressions	ok( $('#en').is('[lang="en"],[lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );	ok( $('#en').is('[lang="de"],[lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );	ok( $('#en').is('[lang="en"] , [lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );	ok( $('#en').is('[lang="de"] , [lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/e2ef3df86d5f54274bf2b779d882c30aa0886bfe/core.js/clean/test/unit/core.js