Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Content/jQuery/jQueryPlugins/DataTables-1.7.6/media/unit_testing/tests_onhold/4_server-side/aoColumns.bSearchable.js @ 6286

Last change on this file since 6286 was 6286, checked in by dkahn, 13 years ago

#1198 Added jQuery plus plugins

File size: 750 bytes
Line 
1// DATA_TEMPLATE: empty_table
2oTest.fnStart( "aoColumns.bSeachable" );
3
4$(document).ready( function () {
5  /* Check the default */
6  var oTable = $('#example').dataTable( {
7    "bServerSide": true,
8    "sAjaxSource": "../../../examples/examples_support/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} );
Note: See TracBrowser for help on using the repository browser.