Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js |
— | — | @@ -393,19 +393,13 @@ |
394 | 394 | '<tr class="sortbottom"><td>TFOOT</td></tr>' + |
395 | 395 | '</table>' |
396 | 396 | ); |
397 | | - //console.log( $table.html() ); |
398 | 397 | $table.tablesorter(); |
399 | | - //console.log( $table.html() ); |
400 | | - var expected = |
401 | | - '<caption>CAPTION</caption>'+ |
402 | | - '<thead>' + |
403 | | - '<tr><th title=\"<sort-ascending>\" class=\"headerSort\">THEAD</th></tr>' + |
404 | | - '</thead>' + |
405 | | - '<tbody><tr><td>A</td></tr>' + |
406 | | - '<tr><td>B</td></tr>' + |
407 | | - '<tr class=\"sortbottom\"><td>TFOOT</td></tr>' + |
408 | | - '</tbody><tfoot></tfoot>'; |
409 | | - deepEqual( $table.html(), expected, '<caption> must be placed before <thead> (bug 32047)' ); |
| 398 | + |
| 399 | + equals( |
| 400 | + $table.children( ).get( 0 ).nodeName, |
| 401 | + 'CAPTION', |
| 402 | + 'First element after <thead> must be <caption> (bug 32047)' |
| 403 | + ); |
410 | 404 | }); |
411 | 405 | |
412 | 406 | test( 'data-sort-value attribute, when available, should override sorting position', function() { |