Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Content/jQuery/jQueryPlugins/DataTables-1.7.6/media/unit_testing/tests_onhold/1_dom/2530.js @ 6286

Last change on this file since 6286 was 6286, checked in by dkahn, 13 years ago

#1198 Added jQuery plus plugins

File size: 684 bytes
RevLine 
[6286]1// DATA_TEMPLATE: dymanic_table
2oTest.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} );
Note: See TracBrowser for help on using the repository browser.