'<tr class="sortbottom"><td>TFOOT</td></tr>' +
'</table>'
);
- //console.log( $table.html() );
$table.tablesorter();
- //console.log( $table.html() );
- var expected =
- '<caption>CAPTION</caption>'+
- '<thead>' +
- '<tr><th title=\"<sort-ascending>\" class=\"headerSort\">THEAD</th></tr>' +
- '</thead>' +
- '<tbody><tr><td>A</td></tr>' +
- '<tr><td>B</td></tr>' +
- '<tr class=\"sortbottom\"><td>TFOOT</td></tr>' +
- '</tbody><tfoot></tfoot>';
- deepEqual( $table.html(), expected, '<caption> must be placed before <thead> (bug 32047)' );
+
+ equals(
+ $table.children( ).get( 0 ).nodeName,
+ 'CAPTION',
+ 'First element after <thead> must be <caption> (bug 32047)'
+ );
});
test( 'data-sort-value attribute, when available, should override sorting position', function() {