From: Salvatore Iovene Date: Tue, 15 Jan 2013 12:24:35 +0000 (+0200) Subject: Disables driving mode on unit test setup. X-Git-Tag: 0.1~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b91c1a51dca9c0f5a76a30f18425eec2c877e2b;p=profile%2Fivi%2Fcowhide.git Disables driving mode on unit test setup. --- diff --git a/tests/unit/cowhide-button.js b/tests/unit/cowhide-button.js index f6cb86e..49df708 100644 --- a/tests/unit/cowhide-button.js +++ b/tests/unit/cowhide-button.js @@ -1,6 +1,12 @@ $(function () { - module("cowhide-buttons") + module("cowhide-buttons", { + setup: function() { + // Resets the driving state + console.log("SET UP") + $.cowhide.setDrivingMode(false) + } + }) test("should be defined on jquery object", function () { ok($(document.body).button, 'button method is defined')