[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 $(function () { 2 3 module("bootstrap-collapse") 4 5 test("should be defined on jquery object", function () { 6 ok($(document.body).collapse, 'collapse method is defined') 7 }) 8 9 test("should return element", function () { 10 ok($(document.body).collapse()[0] == document.body, 'document.body returned') 11 }) 12 13 test("should show a collapsed element", function () { 14 var el = $('<div class="collapse"></div>').collapse('show') 15 ok(el.hasClass('in'), 'has class in') 16 ok(/height/.test(el.attr('style')), 'has height set') 17 }) 18 19 test("should hide a collapsed element", function () { 20 var el = $('<div class="collapse"></div>').collapse('hide') 21 ok(!el.hasClass('in'), 'does not have class in') 22 ok(/height/.test(el.attr('style')), 'has height set') 23 }) 24 25 })
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |