| 1 |
// DATA_TEMPLATE: dymanic_table |
| 2 |
oTest.fnStart( "2530 - Check width's when dealing with empty strings" ); |
| 3 |
|
| 4 |
|
| 5 |
$(document).ready( function () { |
| 6 |
$('#example').dataTable( { |
| 7 |
"aaData": [ |
| 8 |
['','Internet Explorer 4.0','Win 95+','4','X'], |
| 9 |
['','Internet Explorer 5.0','Win 95+','5','C'] |
| 10 |
], |
| 11 |
"aoColumns": [ |
| 12 |
{ "sTitle": "", "sWidth": "40px" }, |
| 13 |
{ "sTitle": "Browser" }, |
| 14 |
{ "sTitle": "Platform" }, |
| 15 |
{ "sTitle": "Version", "sClass": "center" }, |
| 16 |
{ "sTitle": "Grade", "sClass": "center" } |
| 17 |
] |
| 18 |
} ); |
| 19 |
|
| 20 |
/* Basic checks */ |
| 21 |
oTest.fnTest( |
| 22 |
"Check calculated widths", |
| 23 |
null, |
| 24 |
function () { return $('#example tbody tr td:eq(0)').width() < 100; } |
| 25 |
); |
| 26 |
|
| 27 |
|
| 28 |
oTest.fnComplete(); |
| 29 |
} ); |