3 module("cowhide-checkbox-input", {
5 // Resets the driving state
6 $.cowhide.setDrivingMode(false)
10 test("should be disabled when driving", function () {
11 var page = $('<div class="page"></div>')
12 var input = $('<input type="checkbox">test</input>')
14 input.ch_checkbox_input()
15 $.cowhide.setDrivingMode(true)
17 setTimeout(function () {
18 ok(input.attr('disabled'), 'input is disabled')
19 ok(input.hasClass('disabled'), 'input has disabled class')