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

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/fnDeleteRow.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: 782 byte(s)
initial import
1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "fnDeleteRow" );
3
4 $(document).ready( function () {
5 /* Check the default */
6 var oTable = $('#example').dataTable();
7 var oSettings = oTable.fnSettings();
8
9 oTest.fnTest(
10 "Check that the default data is sane",
11 null,
12 function () { return oSettings.asDataSearch.join(' ').match(/4.0/g).length == 3; }
13 );
14
15 oTest.fnTest(
16 "Remove the first data row, and check that hte search data has been updated",
17 function () { oTable.fnDeleteRow( 0 ); },
18 function () { return oSettings.asDataSearch.join(' ').match(/4.0/g).length == 2; }
19 );
20
21 oTest.fnTest(
22 "Check that the info element has been updated",
23 null,
24 function () { return $('#example_info').html() == "Showing 1 to 10 of 56 entries"; }
25 );
26
27
28
29 oTest.fnComplete();
30 } );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20