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.sName.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: 667 bytes
RevLine 
[6286]1// DATA_TEMPLATE: empty_table
2oTest.fnStart( "aoColumns.sName" );
3
4/* This has no effect at all in DOM methods - so we just check that it has applied the name */
5
6$(document).ready( function () {
7  /* Check the default */
8  var oTable = $('#example').dataTable( {
9    "bServerSide": true,
10    "sAjaxSource": "../../../examples/examples_support/server_processing.php",
11    "aoColumns": [
12      null,
13      null,
14      null,
15      { "sName": 'unit test' },
16      null
17    ]
18  } );
19  var oSettings = oTable.fnSettings();
20 
21  oTest.fnWaitTest(
22    "Names are stored in the columns object",
23    null,
24    function () { return oSettings.aoColumns[3].sName =="unit test"; }
25  );
26 
27 
28  oTest.fnComplete();
29} );
Note: See TracBrowser for help on using the repository browser.