3 module("cowhide-select", {
5 // Resets the driving state
6 $.cowhide.setDrivingMode(false)
10 test("should provide no conflict", function () {
11 var select = $.fn.ch_select.noConflict()
12 ok(!$.fn.ch_select, 'select was set back to undefined (org value)')
13 $.fn.ch_select = select
16 test("should be disabled when driving", function () {
17 var page = $('<div class="page"></div>')
18 var input = $('<select><option>test</option></select>')
21 $.cowhide.setDrivingMode(true)
23 setTimeout(function () {
24 ok(input.attr('disabled'), 'input is disabled')
25 ok(input.hasClass('disabled'), 'input has disabled class')