From 07965d29f4278d4ab254e7e428a38e9df2fe1f06 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 10 Nov 2011 22:54:29 +0000 Subject: [PATCH] on tablesort, verify is the first child in the table r102303 tried to compare the whole table when bug 32047 only require we have as a first child. Easier definition leads to easier code! --- .../jquery/jquery.tablesorter.test.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js index cf6ce2866c..0cc38f20ea 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js @@ -393,19 +393,13 @@ test( 'bug 32047 - caption must be before thead', function() { 'TFOOT' + '' ); - //console.log( $table.html() ); $table.tablesorter(); - //console.log( $table.html() ); - var expected = - 'CAPTION'+ - '' + - 'THEAD' + - '' + - 'A' + - 'B' + - 'TFOOT' + - ''; - deepEqual( $table.html(), expected, ' must be placed before (bug 32047)' ); + + equals( + $table.children( ).get( 0 ).nodeName, + 'CAPTION', + 'First element after must be (bug 32047)' + ); }); test( 'data-sort-value attribute, when available, should override sorting position', function() { -- 2.20.1