From 7dbf7ecfc1d01bd23de1fa2785d58b8451e64f56 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sun, 21 Mar 2010 22:28:32 +0100 Subject: Copying files from old Googlecode dev branch for tooltip --- tests/visual/tooltip/tooltip.html | 127 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 tests/visual/tooltip/tooltip.html (limited to 'tests/visual/tooltip/tooltip.html') diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html new file mode 100644 index 000000000..c0401be66 --- /dev/null +++ b/tests/visual/tooltip/tooltip.html @@ -0,0 +1,127 @@ + + + + Tooltip Visual Test: Default + + + + + + + + + + + + +
+ + +
+ collision detection should kick in around here +
+ +
+ I'm a link to a footnote. +
+ +
+ right aligned with custom position +
+ +
+ gets its content via ajax +
+ +
+ span +
+ div + nested span +
+
+ +
+
+ + +
+
+ + +
+
+ +
This is the footnote, including other elements
+ + + +
+ + + + -- cgit v1.2.3 From 339543636f521a0c7d3c5a4138937e3a7dc2d1ba Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sun, 21 Mar 2010 22:45:36 +0100 Subject: Tooltip: Added another element for testing the issue with mouseover/out --- tests/visual/tooltip/tooltip.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/visual/tooltip/tooltip.html') diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index c0401be66..5b0f9059a 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -20,7 +20,7 @@ function enable() { // default - $("#context1, form input").tooltip(); + $("#context1, form input, #childish").tooltip(); // custom class, replaces ui-widget-content $("#context2").tooltip({ @@ -105,6 +105,10 @@ +
+ Text in bold. +
+
-- cgit v1.2.3 From e285e43d2bcd0c5744b0300b703641cb10b28137 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 25 Mar 2010 14:46:42 -0400 Subject: Tooltip: Replacing mouseover/out with mouseenter/leave, dropping (for now) support for event delegation --- tests/visual/tooltip/tooltip.html | 4 ++-- ui/jquery.ui.tooltip.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/visual/tooltip/tooltip.html') diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index 5b0f9059a..cac2fbbd1 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -20,10 +20,10 @@ function enable() { // default - $("#context1, form input, #childish").tooltip(); + $("#context1 a, form input, #childish").tooltip(); // custom class, replaces ui-widget-content - $("#context2").tooltip({ + $("#context2 [title]").tooltip({ tooltipClass: "ui-widget-header" }); $("#right1").tooltip({ diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 374139264..4d0be6458 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -43,10 +43,10 @@ $.widget("ui.tooltip", { .appendTo(this.tooltip); this.opacity = this.tooltip.css("opacity"); this.element - .bind("focus.tooltip mouseover.tooltip", function(event) { + .bind("focus.tooltip mouseenter.tooltip", function(event) { self.show($(event.target)); }) - .bind("blur.tooltip mouseout.tooltip", function(event) { + .bind("blur.tooltip mouseleave.tooltip", function(event) { self.close(); }); }, -- cgit v1.2.3 From 87533753f49156c1d1331d6a02e8682ae863a3c2 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 25 Mar 2010 18:06:16 -0400 Subject: Tooltip: Add Button to visual test page to test interoperability --- tests/visual/tooltip/tooltip.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/visual/tooltip/tooltip.html') diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index cac2fbbd1..3f1ae3878 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -8,6 +8,7 @@ +