Commit 8246347b authored by timmywil's avatar timmywil

Starting with adding the test

parent 6c124d3d
...@@ -13,6 +13,15 @@ test("find(String)", function() { ...@@ -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' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment