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:
parent
6c923e4953
commit
25fadbc644
16
media/unit_testing/tests_onhold/1_dom/fnFilter.js
Executable file
16
media/unit_testing/tests_onhold/1_dom/fnFilter.js
Executable 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();
|
||||
} );
|
Loading…
x
Reference in New Issue
Block a user