Line | |
---|
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/examples_support/json_source.txt", |
---|
10 | "aoColumns": [ |
---|
11 | null, |
---|
12 | null, |
---|
13 | null, |
---|
14 | { "sName": 'unit test' }, |
---|
15 | null |
---|
16 | ] |
---|
17 | } ); |
---|
18 | var oSettings = oTable.fnSettings(); |
---|
19 | |
---|
20 | oTest.fnWaitTest( |
---|
21 | "Names are stored in the columns object", |
---|
22 | null, |
---|
23 | function () { return oSettings.aoColumns[3].sName =="unit test"; } |
---|
24 | ); |
---|
25 | |
---|
26 | |
---|
27 | oTest.fnComplete(); |
---|
28 | } ); |
---|
Note: See
TracBrowser
for help on using the repository browser.