1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00
DataTables/media/unit_testing/tests_onhold/1_dom/2840-restore-table-width.js
2011-11-07 09:55:01 +01:00

19 lines
405 B
JavaScript
Executable File

// DATA_TEMPLATE: dom_data
oTest.fnStart( "2840 - Restore table width on fnDestroy" );
$(document).ready( function () {
document.cookie = "";
$('#example').dataTable( {
"sScrollX": "100%",
"sScrollXInner": "110%"
} );
$('#example').dataTable().fnDestroy();
oTest.fnTest(
"Width after destroy",
null,
function () { return $('#example').width() == "800"; }
);
oTest.fnComplete();
} );