1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // DATA_TEMPLATE: dom_data oTest.fnStart( "User given with is left when no scrolling" ); $(document).ready( function () { $('#example')[0].style.width = "80%"; $('#example').dataTable(); oTest.fnTest( "Check user width is left", null, function () { return $('#example').width() == 640; } ); oTest.fnComplete(); } ); |