/[projects]/misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/2569.js
ViewVC logotype

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/2569.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (show annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 3 months ago) by torben
File MIME type: application/javascript
File size: 888 byte(s)
initial import
1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "Destroy with hidden columns" );
3
4 $(document).ready( function () {
5 $('#example').dataTable( {
6 "aoColumnDefs": [
7 { "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
8 { "bVisible": false, "aTargets": [ 3 ] }
9 ]
10 } );
11 $('#example').dataTable().fnDestroy();
12
13 oTest.fnTest(
14 "Check that the number of columns in table is correct",
15 null,
16 function () { return $('#example tbody tr:eq(0) td').length == 5; }
17 );
18
19
20 oTest.fnTest(
21 "And with scrolling",
22 function () {
23 $('#example').dataTable( {
24 "sScrollY": 200,
25 "aoColumnDefs": [
26 { "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
27 { "bVisible": false, "aTargets": [ 3 ] }
28 ]
29 } );
30 $('#example').dataTable().fnDestroy();
31 },
32 function () { return $('#example tbody tr:eq(0) td').length == 5; }
33 );
34
35 oTest.fnComplete();
36 } );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20