Merge branch 'master' into PROT-9-webservice
[proteocache.git] / webapp / resources / datatables-1.9.4 / media / unit_testing / tests_onhold / 1_dom / fnFilter.js
diff --git a/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/fnFilter.js b/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/fnFilter.js
new file mode 100755 (executable)
index 0000000..1e18b22
--- /dev/null
@@ -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