/[projects]/misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/5_ajax_objects/sAjaxSource.js
ViewVC logotype

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/5_ajax_objects/sAjaxSource.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, 2 months ago) by torben
File MIME type: application/javascript
File size: 681 byte(s)
initial import
1 // DATA_TEMPLATE: empty_table
2 oTest.fnStart( "sAjaxSource" );
3
4 /* Sanitfy check really - all the other tests blast this */
5
6 $(document).ready( function () {
7 /* Check the default */
8 var oTable = $('#example').dataTable( {
9 "sAjaxSource": "../../../examples/ajax/sources/objects.txt",
10 "aoColumns": [
11 { "mData": "engine" },
12 { "mData": "browser" },
13 { "mData": "platform" },
14 { "mData": "version" },
15 { "mData": "grade" }
16 ]
17 } );
18 var oSettings = oTable.fnSettings();
19
20 oTest.fnWaitTest(
21 "Server side is off by default",
22 null,
23 function () {
24 return oSettings.sAjaxSource == "../../../examples/ajax/sources/objects.txt";
25 }
26 );
27
28 oTest.fnComplete();
29 } );

  ViewVC Help
Powered by ViewVC 1.1.20