X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webapp%2Fresources%2Fdatatables-1.9.4%2Fmedia%2Funit_testing%2Ftests_onhold%2F1_dom%2FbJQueryUI.js;fp=webapp%2Fresources%2Fdatatables-1.9.4%2Fmedia%2Funit_testing%2Ftests_onhold%2F1_dom%2FbJQueryUI.js;h=6c685468c65b1e7fd1a1dc70232735043fedc501;hb=9bb6ee99ca7f738fac1087190b5481b8fe6e8d9f;hp=0000000000000000000000000000000000000000;hpb=2e3f6b76be585306f1003d849831840c0adb3360;p=proteocache.git diff --git a/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/bJQueryUI.js b/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/bJQueryUI.js new file mode 100755 index 0000000..6c68546 --- /dev/null +++ b/webapp/resources/datatables-1.9.4/media/unit_testing/tests_onhold/1_dom/bJQueryUI.js @@ -0,0 +1,40 @@ +// DATA_TEMPLATE: dom_data +oTest.fnStart( "bJQueryUI" ); + +$(document).ready( function () { + $('#example').dataTable( { + "bJQueryUI": true + } ); + + oTest.fnTest( + "Header elements are fully wrapped by DIVs", + null, + function () { + var test = true; + $('#example thead th').each( function () { + if ( this.childNodes > 1 ) { + test = false; + } + } ); + return test; + } + ); + + oTest.fnTest( + "One div for each header element", + null, + function () { + return $('#example thead th div').length == 5; + } + ); + + oTest.fnTest( + "One span for each header element, nested as child of div", + null, + function () { + return $('#example thead th div>span').length == 5; + } + ); + + oTest.fnComplete(); +} ); \ No newline at end of file