Add datatables-1.9.4 and jquery-1.10.2 libraries
[proteocache.git] / webapp / resources / datatables-1.9.4 / media / unit_testing / tests_onhold / 4_server-side / aoColumns.bSearchable.js
1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "aoColumns.bSeachable" );
3
4 $(document).ready( function () {
5         /* Check the default */
6         var oTable = $('#example').dataTable( {
7                 "bServerSide": true,
8                 "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
9         } );
10         var oSettings = oTable.fnSettings();
11         
12         oTest.fnWaitTest( 
13                 "Columns are searchable by default",
14                 function () { oTable.fnFilter("Camino"); },
15                 function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Camino 1.0"; }
16         );
17         
18         /* NOT ACTUALLY GOING TO TEST BSEARCHABLE HERE. Reason being is that it requires the server
19          * side to alter it's processing, and this information about columns is not actually sent to
20          * the server
21          */
22         
23         
24         oTest.fnComplete();
25 } );