Add datatables-1.9.4 and jquery-1.10.2 libraries
[proteocache.git] / webapp / resources / datatables-1.9.4 / media / unit_testing / tests_onhold / 1_dom / oLanguage.sProcessing.js
1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "oLanguage.sProcessing" );
3
4 $(document).ready( function () {
5         /* Check the default */
6         var oTable = $('#example').dataTable( {
7                 "bProcessing": true
8         } );
9         var oSettings = oTable.fnSettings();
10         
11         oTest.fnTest( 
12                 "Processing language is 'Processing...' by default",
13                 null,
14                 function () { return oSettings.oLanguage.sProcessing == "Processing..."; }
15         );
16         
17         oTest.fnTest( 
18                 "Processing language default is in the DOM",
19                 null,
20                 function () { return document.getElementById('example_processing').innerHTML = "Processing..."; }
21         );
22         
23         
24         oTest.fnTest( 
25                 "Processing language can be defined",
26                 function () {
27                         oSession.fnRestore();
28                         oTable = $('#example').dataTable( {
29                                 "bProcessing": true,
30                                 "oLanguage": {
31                                         "sProcessing": "unit test"
32                                 }
33                         } );
34                         oSettings = oTable.fnSettings();
35                 },
36                 function () { return oSettings.oLanguage.sProcessing == "unit test"; }
37         );
38         
39         oTest.fnTest( 
40                 "Processing language definition is in the DOM",
41                 null,
42                 function () { return document.getElementById('example_processing').innerHTML = "unit test"; }
43         );
44         
45         
46         oTest.fnComplete();
47 } );