Mercurial > repos > saskia-hiltemann > ireport
view DataTables-1.9.4/media/unit_testing/tests_onhold/6_delayed_rendering/bPaginate.js @ 6:42076db43d42 draft
Fixed auto resizing plus various other minor bugs
author | saskia-hiltemann |
---|---|
date | Mon, 16 Nov 2015 08:56:22 -0500 |
parents | ac5f9272033b |
children |
line wrap: on
line source
// DATA_TEMPLATE: empty_table oTest.fnStart( "bPaginate" ); $(document).ready( function () { /* Check the default */ $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true } ); oTest.fnWaitTest( "Pagiantion div exists by default", null, function () { return document.getElementById('example_paginate') != null; } ); oTest.fnWaitTest( "Information div takes paging into account", null, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 10 of 57 entries"; } ); /* Check can disable */ oTest.fnWaitTest( "Pagiantion can be disabled", function () { oSession.fnRestore(); $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "bPaginate": false } ); }, function () { return document.getElementById('example_paginate') == null; } ); oTest.fnWaitTest( "Information div takes paging disabled into account", null, function () { return document.getElementById('example_info').innerHTML == "Showing 1 to 57 of 57 entries"; } ); /* Enable makes no difference */ oTest.fnWaitTest( "Pagiantion enabled override", function () { oSession.fnRestore(); $('#example').dataTable( { "sAjaxSource": "../../../examples/ajax/sources/arrays.txt", "bDeferRender": true, "bPaginate": true } ); }, function () { return document.getElementById('example_paginate') != null; } ); oTest.fnComplete(); } );