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

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/5508-xscroll-zero-content.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: 615 byte(s)
initial import
1 // DATA_TEMPLATE: dom_data
2 oTest.fnStart( "5508 - Table container width doesn't change when filtering applied to scrolling table" );
3
4 $(document).ready( function () {
5 $('#example').dataTable( {
6 "sScrollY": "300px",
7 "bPaginate": false
8 } );
9
10 oTest.fnTest(
11 "Width of container 800px on init with scroll",
12 null,
13 function () { return $('div.dataTables_scrollBody').width() == 800; }
14 );
15
16 oTest.fnTest(
17 "Unaltered when filter applied",
18 function () { $('#example').dataTable().fnFilter('123'); },
19 function () { return $('div.dataTables_scrollBody').width() == 800; }
20 );
21
22 oTest.fnComplete();
23 } );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20