Sha256: 65bd9acc24da4bb0ff1c1fdb2ae91771e1033d162669ad0b6cca40676ee04fa0

Contents?: true

Size: 1.55 KB

Versions: 28

Compression:

Stored size: 1.55 KB

Contents

// DATA_TEMPLATE: -complex_header
oTest.fnStart( "Complex header" );


$(document).ready( function () {
	$('#example').dataTable();
	
	oTest.fnTest( 
		"Sorting on colspan has no effect",
		function () { $('#example thead th:eq(1)').click(); },
		function () { return $('#example tbody tr td:eq(1)').html() == "Firefox 1.0"; }
	);
	
	oTest.fnTest( 
		"Sorting on non-unique TH and first TH has no effect",
		function () { $('#example thead th:eq(2)').click(); },
		function () { return $('#example tbody tr td:eq(1)').html() == "Firefox 1.0"; }
	);
	
	oTest.fnTest( 
		"Sorting on non-unique TH and second TH will sort",
		function () { $('#example thead th:eq(6)').click(); },
		function () { return $('#example tbody tr td:eq(4)').html() == "A"; }
	);
	
	oTest.fnTest( 
		"Sorting on non-unique TH and second TH will sort - reserve",
		function () { $('#example thead th:eq(6)').click(); },
		function () { return $('#example tbody tr td:eq(4)').html() == "X"; }
	);
	
	oTest.fnTest( 
		"Sorting on unique TH will sort",
		function () { $('#example thead th:eq(5)').click(); },
		function () { return $('#example tbody tr td:eq(3)').html() == "-"; }
	);
	
	oTest.fnTest( 
		"Sorting on unique TH will sort - reserve",
		function () { $('#example thead th:eq(5)').click(); },
		function () { return $('#example tbody tr td:eq(3)').html() == "522.1"; }
	);
	
	oTest.fnTest( 
		"Sorting on unique rowspan TH will sort",
		function () { $('#example thead th:eq(0)').click(); },
		function () { return $('#example tbody tr td:eq(0)').html() == "Gecko"; }
	);
	
	
	oTest.fnComplete();
} );

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
classiccms-0.7.5 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.7.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.7.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.7.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.7.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.7.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.9 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.8 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.7 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.6 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.5 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.6.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.5.17 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.5.16 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.5.15 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js
classiccms-0.5.14 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/1_dom/-complex_header.js