/[projects]/misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/2530.js
ViewVC logotype

Contents of /misc/horsensspejder-web/jquery/DataTables-1.9.4/media/unit_testing/tests_onhold/1_dom/2530.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (show annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 2 months ago) by torben
File MIME type: application/javascript
File size: 684 byte(s)
initial import
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 } );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20