PHP Classes

File: assets/js/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   assets/js/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js   Download  
File: assets/js/datatables/unit_testing/tests_onhold/2_js/8549--string-sorting-nonstrings.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 8 years ago
Size: 888 bytes
 

Contents

Class file image Download
// 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(); } );