diff --git a/media/unit_testing/tests_onhold/1_dom/fnFilter.js b/media/unit_testing/tests_onhold/1_dom/fnFilter.js new file mode 100755 index 00000000..1e18b22d --- /dev/null +++ b/media/unit_testing/tests_onhold/1_dom/fnFilter.js @@ -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(); +} ); \ No newline at end of file