X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webapp%2Fresources%2Fdatatables-1.9.4%2Fmedia%2Funit_testing%2Ftests_onhold%2F1_dom%2F5508-xscroll-zero-content.js;fp=webapp%2Fresources%2Fdatatables-1.9.4%2Fmedia%2Funit_testing%2Ftests_onhold%2F1_dom%2F5508-xscroll-zero-content.js;h=f71ae8f447461132d7e67324320ef675d1547654;hb=9bb6ee99ca7f738fac1087190b5481b8fe6e8d9f;hp=0000000000000000000000000000000000000000;hpb=2e3f6b76be585306f1003d849831840c0adb3360;p=proteocache.git diff --git a/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/5508-xscroll-zero-content.js b/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/5508-xscroll-zero-content.js new file mode 100755 index 0000000..f71ae8f --- /dev/null +++ b/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/5508-xscroll-zero-content.js @@ -0,0 +1,23 @@ +// DATA_TEMPLATE: dom_data +oTest.fnStart( "5508 - Table container width doesn't change when filtering applied to scrolling table" ); + +$(document).ready( function () { + $('#example').dataTable( { + "sScrollY": "300px", + "bPaginate": false + } ); + + oTest.fnTest( + "Width of container 800px on init with scroll", + null, + function () { return $('div.dataTables_scrollBody').width() == 800; } + ); + + oTest.fnTest( + "Unaltered when filter applied", + function () { $('#example').dataTable().fnFilter('123'); }, + function () { return $('div.dataTables_scrollBody').width() == 800; } + ); + + oTest.fnComplete(); +} ); \ No newline at end of file