1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-05 17:24:10 +01:00
DataTables/media/unit_testing/tests_onhold/1_dom/2530.js

29 lines
684 B
JavaScript
Raw Normal View History

// DATA_TEMPLATE: dymanic_table
oTest.fnStart( "2530 - Check width's when dealing with empty strings" );
$(document).ready( function () {
$('#example').dataTable( {
"aaData": [
['','Internet Explorer 4.0','Win 95+','4','X'],
['','Internet Explorer 5.0','Win 95+','5','C']
],
"aoColumns": [
{ "sTitle": "", "sWidth": "40px" },
{ "sTitle": "Browser" },
{ "sTitle": "Platform" },
{ "sTitle": "Version", "sClass": "center" },
{ "sTitle": "Grade", "sClass": "center" }
]
} );
/* Basic checks */
oTest.fnTest(
"Check calculated widths",
null,
function () { return $('#example tbody tr td:eq(0)').width() < 100; }
);
oTest.fnComplete();
} );