1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "fnDeleteRow" );
4 $(document).ready( function () {
5 /* Check the default */
6 var oTable = $('#example').dataTable();
7 var oSettings = oTable.fnSettings();
10 "Check that the default data is sane",
12 function () { return oSettings.asDataSearch.join(' ').match(/4.0/g).length == 3; }
16 "Remove the first data row, and check that hte search data has been updated",
17 function () { oTable.fnDeleteRow( 0 ); },
18 function () { return oSettings.asDataSearch.join(' ').match(/4.0/g).length == 2; }
22 "Check that the info element has been updated",
24 function () { return $('#example_info').html() == "Showing 1 to 10 of 56 entries"; }