old-tests/tests_onhold/1_dom/fnFilter.js
raw| 1 | // DATA_TEMPLATE: dom_data |
| 2 | oTest.fnStart( "fnFilter" ); |
| 3 | |
| 4 | $(document).ready( function () { |
| 5 | /* Check the default */ |
| 6 | var oTable = $('#example').dataTable(); |
| 7 | oTable.fnFilter(1); |
| 8 | |
| 9 | oTest.fnTest( |
| 10 | "Filtering with a non-string input is valid", |
| 11 | null, |
| 12 | function () { return $('#example_info').html() == "Showing 1 to 10 of 32 entries (filtered from 57 total entries)"; } |
| 13 | ); |
| 14 | |
| 15 | oTest.fnComplete(); |
| 16 | } ); |