1 |
// DATA_TEMPLATE: dom_data |
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 |
"aoColumns": [ |
10 |
null, |
11 |
null, |
12 |
null, |
13 |
{ "sName": 'unit test' }, |
14 |
null |
15 |
] |
16 |
} ); |
17 |
var oSettings = oTable.fnSettings(); |
18 |
|
19 |
oTest.fnTest( |
20 |
"Names are stored in the columns object", |
21 |
null, |
22 |
function () { return oSettings.aoColumns[3].sName =="unit test"; } |
23 |
); |
24 |
|
25 |
|
26 |
oTest.fnComplete(); |
27 |
} ); |