Merge branch 'master' into PROT-9-webservice
[proteocache.git] / webapp / resources / datatables-1.9.4 / media / unit_testing / tests_onhold / 1_dom / 5508-xscroll-zero-content.js
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 (executable)
index 0000000..f71ae8f
--- /dev/null
@@ -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