Commit 72e9e916 authored by Oleg's avatar Oleg

Add tests for th element

parent 1490afe6
...@@ -395,7 +395,7 @@ var testAppendForObject = function( valueObj, isFragment ) { ...@@ -395,7 +395,7 @@ var testAppendForObject = function( valueObj, isFragment ) {
var testAppend = function( valueObj ) { var testAppend = function( valueObj ) {
expect( 75 ); expect( 77 );
testAppendForObject( valueObj, false ); testAppendForObject( valueObj, false );
testAppendForObject( valueObj, true ); testAppendForObject( valueObj, true );
...@@ -460,7 +460,7 @@ var testAppend = function( valueObj ) { ...@@ -460,7 +460,7 @@ var testAppend = function( valueObj ) {
$table = jQuery("#table"); $table = jQuery("#table");
jQuery.each( "thead tbody tfoot colgroup caption tr td".split(" "), function( i, name ) { jQuery.each( "thead tbody tfoot colgroup caption tr th td".split(" "), function( i, name ) {
$table.append( valueObj( "<" + name + "/>" ) ); $table.append( valueObj( "<" + name + "/>" ) );
equal( $table.find( name ).length, 1, "Append " + name ); equal( $table.find( name ).length, 1, "Append " + name );
ok( jQuery.clean( ["<" + name + "/>"] ).length, name + " wrapped correctly" ); ok( jQuery.clean( ["<" + name + "/>"] ).length, name + " wrapped correctly" );
......
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