Tablesorter: Add testcase for unsortable column
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Jul 2013 21:23:51 +0000 (23:23 +0200)
committerMatmaRex <matma.rex@gmail.com>
Sun, 21 Jul 2013 15:10:40 +0000 (17:10 +0200)
Change-Id: I64ea3c7301a8be6c4b7b9b462d0e81b89a525f9e

tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js

index 494abd8..f73fd7b 100644 (file)
        );
 
 
+       tableTest(
+               'Basic planet table: one unsortable column',
+               header,
+               planets,
+               planets,
+               function ( $table ) {
+                       $table.find( 'tr:eq(0) > th:eq(0)' ).addClass( 'unsortable' );
+
+                       $table.tablesorter();
+                       $table.find( 'tr:eq(0) > th:eq(0)' ).click();
+               }
+       );
+
        // Regression tests!
        tableTest(
                'Bug 28775: German-style (dmy) short numeric dates',