1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "bPaginate" );
4 $(document).ready( function () {
5 /* Check the default */
6 $('#example').dataTable();
9 "Pagiantion div exists by default",
11 function () { return document.getElementById('example_paginate') != null; }
15 "Information div takes paging into account",
17 function () { return document.getElementById('example_info').innerHTML ==
18 "Showing 1 to 10 of 57 entries"; }
21 /* Check can disable */
23 "Pagiantion can be disabled",
26 $('#example').dataTable( {
30 function () { return document.getElementById('example_paginate') == null; }
34 "Information div takes paging disabled into account",
36 function () { return document.getElementById('example_info').innerHTML ==
37 "Showing 1 to 57 of 57 entries"; }
40 /* Enable makes no difference */
42 "Pagiantion enabled override",
45 $('#example').dataTable( {
49 function () { return document.getElementById('example_paginate') != null; }