Sha256: 6be6b0d97a38e451ee32ce6fd1fbef68ec1715da663f1e6d5be190dd446126dc

Contents?: true

Size: 888 Bytes

Versions: 28

Compression:

Stored size: 888 Bytes

Contents

// DATA_TEMPLATE: empty_table
oTest.fnStart( "8549 - string sorting non-string types" );

$(document).ready( function () {
	var test = false;

	$.fn.dataTable.ext.sErrMode = "throw";



	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 * Shallow properties
	 */
	
	$('#example').dataTable( {
		"aaData": [
			[ null ],
			[ 5 ],
			[ "1a" ],
			[ new Date(0) ]
		],
		"aoColumns": [
			{ "sTitle": "Test" }
		]
	} );
	
	oTest.fnTest( 
		"Sorting works - first cell is empty",
		null,
		function () { return $('#example tbody tr:eq(0) td:eq(0)').html() === ""; }
	);
	
	oTest.fnTest( 
		"Second cell is 1a",
		null,
		function () { return $('#example tbody tr:eq(1) td:eq(0)').html() === "1a"; }
	);
	
	oTest.fnTest( 
		"Third cell is 5",
		null,
		function () { return $('#example tbody tr:eq(2) td:eq(0)').html() === "5"; }
	);
	
	
	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/2_js/8549--string-sorting-nonstrings.js
classiccms-0.7.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.7.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.7.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.7.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.7.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.9 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.8 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.7 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.6 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.5 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.6.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.5.17 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.5.16 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.5.15 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
classiccms-0.5.14 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js