annotate DataTables-1.9.4/media/unit_testing/tests_onhold/6_delayed_rendering/bServerSide.js @ 7:0f2b740536fb draft

Uploaded
author saskia-hiltemann
date Mon, 21 Aug 2017 09:16:07 -0400
parents ac5f9272033b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
1 // DATA_TEMPLATE: empty_table
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
2 oTest.fnStart( "bServerSide" );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
3
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
4 /* Not interested in server-side processing here other than to check that it is off */
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
5
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
6 $(document).ready( function () {
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
7 /* Check the default */
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
8 var oTable = $('#example').dataTable( {
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
9 "sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
10 "bDeferRender": true
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
11 } );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
12 var oSettings = oTable.fnSettings();
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
13
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
14 oTest.fnWaitTest(
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
15 "Server side is off by default",
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
16 null,
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
17 function () { return oSettings.oFeatures.bServerSide == false; }
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
18 );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
19
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
20 oTest.fnComplete();
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
21 } );