Skip to content
Permalink
Browse files

Starting with adding the test

  • Loading branch information
timmywil
timmywil committed Mar 14, 2011
1 parent 6c124d3 commit 8246347b7191e79ed09bf1fc4c4a0a58211cf345
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/unit/traversing.js
@@ -13,6 +13,15 @@ test("find(String)", function() {
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() {
expect(26);
ok( jQuery('#form').is('form'), 'Check for element: A form must be a form' );

0 comments on commit 8246347

Please sign in to comment.
You can’t perform that action at this time.