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

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/oLanguage.sProcessing.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: 1127 byte(s)
initial import
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 } );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20