--- a/unittests/tests/widgets/tooltipWidget.js Mon Dec 19 17:26:02 2011 +0100
+++ b/unittests/tests/widgets/tooltipWidget.js Wed Dec 21 10:30:46 2011 +0100
@@ -27,8 +27,7 @@
equal(widget.selector.children(".tip").length, 1, "test if the div has been added correctly");
equal(widget.selector.children(".tip").css("position"), "fixed", "test if the widget has the correct position attr");
- equal(widget.selector.children(".tip").css("left"), "-10000px", "test if div has been positionned correctly");
- equal(widget.selector.children(".tip").css("top"), "-100000px", "test if div has been positionned correctly");
+ equal(widget.selector.children(".tip").css("display"), "none", "test if tooltip is hidden");
});
test("test widget display function", function() {
@@ -39,9 +38,9 @@
equal(widget.selector.children(".tip").css("left"), "105px", "test if div has been positionned correctly");
equal(widget.selector.children(".tip").css("top"), "240px", "test if div has been positionned correctly");
equal(widget.selector.find(".tiptext").text(), "ceci est un texte", "test if text has been set correctly");
+ notEqual(widget.selector.children(".tip").css("display"), "none", "test if tooltip is hidden");
widget.hide();
- equal(widget.selector.children(".tip").css("left"), "-10000px", "test if div has been positionned correctly");
- equal(widget.selector.children(".tip").css("top"), "-100000px", "test if div has been positionned correctly");
+ equal(widget.selector.children(".tip").css("display"), "none", "test if tooltip is hidden");
});
};