comparison DataTables-1.9.4/media/unit_testing/tests_onhold/6_delayed_rendering/aoColumns.sName.js @ 0:ac5f9272033b draft

first upload
author saskia-hiltemann
date Tue, 01 Jul 2014 11:42:23 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ac5f9272033b
1 // DATA_TEMPLATE: empty_table
2 oTest.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 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
10 "bDeferRender": true,
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 } );