Starting with adding the test

This commit is contained in:
timmywil 2011-03-13 21:12:10 -04:00
parent 6c124d3dd4
commit 8246347b71

View file

@ -13,6 +13,15 @@ test("find(String)", function() {
same( jQuery("#main").find("> #foo > p").get(), q("sndp", "en", "sap"), "find child elements" ); same( jQuery("#main").find("> #foo > p").get(), q("sndp", "en", "sap"), "find child elements" );
}); });
test("find(node|jQuery object)", function() {
expect( 2 );
var $blog = jQuery('.blogTest'),
blog = $blog[0];
equals( jQuery('#foo').find( $blog ).text(), 'Yahoo', 'Find with blog jQuery object' );
equals( jQuery('#foo').find( blog ).text(), 'Yahoo', 'Find with blog node' );
});
test("is(String)", function() { test("is(String)", function() {
expect(26); expect(26);
ok( jQuery('#form').is('form'), 'Check for element: A form must be a form' ); ok( jQuery('#form').is('form'), 'Check for element: A form must be a form' );