PHP Classes

File: assets/js/datatables/unit_testing/tests_onhold/1_dom/gh125 - stripe stripping.js

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   assets/js/datatables/unit_testing/tests_onhold/1_dom/gh125 - stripe stripping.js   Download  
File: assets/js/datatables/unit_testing/tests_onhold/1_dom/gh125 - stripe stripping.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: 1 month ago
Size: 1,236 bytes
 

Contents

Class file image Download
// DATA_TEMPLATE: dom_data oTest.fnStart( "Odd and even are stripped from all rows" ); $(document).ready( function () { $('table tbody tr').addClass( 'odd even' ); $('table.display').dataTable(); oTest.fnTest( "Odd is applied to exactly 5 rows", null, function () { return $('#example tbody tr.odd').length === 5; } ); oTest.fnTest( "Even is applied to exactly 5 rows", null, function () { return $('#example tbody tr.even').length === 5; } ); oTest.fnTest( "First row is odd", null, function () { return $('#example tbody tr:eq(0)').hasClass('odd') && ! $('#example tbody tr:eq(0)').hasClass('even'); } ); oTest.fnTest( "Second row is even", null, function () { return $('#example tbody tr:eq(1)').hasClass('even') && ! $('#example tbody tr:eq(1)').hasClass('odd'); } ); oTest.fnTest( "Third row is odd", null, function () { return $('#example tbody tr:eq(2)').hasClass('odd') && ! $('#example tbody tr:eq(2)').hasClass('even'); } ); oTest.fnTest( "Fourth row is even", null, function () { return $('#example tbody tr:eq(3)').hasClass('even') && ! $('#example tbody tr:eq(3)').hasClass('odd'); } ); oTest.fnComplete(); } );