1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Add unit test for filtering on non-string input

This commit is contained in:
Allan Jardine 2011-12-06 10:39:08 +00:00
parent 6c923e4953
commit 25fadbc644

View File

@ -0,0 +1,16 @@
// DATA_TEMPLATE: dom_data
oTest.fnStart( "fnFilter" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable();
oTable.fnFilter(1);
oTest.fnTest(
"Filtering with a non-string input is valid",
null,
function () { return $('#example_info').html() == "Showing 1 to 10 of 32 entries (filtered from 57 total entries)"; }
);
oTest.fnComplete();
} );