/[projects]/misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/3_ajax/bInfo.js
ViewVC logotype

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/3_ajax/bInfo.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: 1024 byte(s)
initial import
1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "bInfo" );
3
4 $(document).ready( function () {
5 /* Check the default */
6 $('#example').dataTable( {
7 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt"
8 } );
9
10 oTest.fnWaitTest(
11 "Info div exists by default",
12 null,
13 function () { return document.getElementById('example_info') != null; }
14 );
15
16 /* Check can disable */
17 oTest.fnWaitTest(
18 "Info can be disabled",
19 function () {
20 oSession.fnRestore();
21 $('#example').dataTable( {
22 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
23 "bInfo": false
24 } );
25 },
26 function () { return document.getElementById('example_info') == null; }
27 );
28
29 /* Enable makes no difference */
30 oTest.fnWaitTest(
31 "Info enabled override",
32 function () {
33 oSession.fnRestore();
34 $('#example').dataTable( {
35 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
36 "bInfo": true
37 } );
38 },
39 function () { return document.getElementById('example_info') != null; }
40 );
41
42
43 oTest.fnComplete();
44 } );

  ViewVC Help
Powered by ViewVC 1.1.20