aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/tooltip
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-26 15:36:43 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-26 15:36:43 +0200
commitbdd815e8dcdeace8be6dd8005ef443bc5ea20548 (patch)
treeafe8e4a1da8ca9762df45d4c84562b7b3458092f /tests/visual/tooltip
parent4d6770fe13b6fa73d36b3f72d04585dc744e7961 (diff)
downloadjquery-ui-bdd815e8dcdeace8be6dd8005ef443bc5ea20548.tar.gz
jquery-ui-bdd815e8dcdeace8be6dd8005ef443bc5ea20548.zip
Tooltip: Demo and tests update
Diffstat (limited to 'tests/visual/tooltip')
-rw-r--r--tests/visual/tooltip/tooltip.html15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html
index 7b931b155..1e2832e34 100644
--- a/tests/visual/tooltip/tooltip.html
+++ b/tests/visual/tooltip/tooltip.html
@@ -24,12 +24,10 @@
$("#context1 a, form input, #childish").tooltip();
// custom class, replaces ui-widget-content
- $("#context2 [title]").tooltip({
- tooltipClass: "ui-widget-header"
- });
- $("#right1").tooltip({
- tooltipClass: "ui-state-error"
- });
+ $("#context2 [title]").tooltip().each(function() {
+ $(this).tooltip("widget").addClass("ui-widget-header");
+ })
+ $("#right1").tooltip().tooltip("widget").addClass("ui-state-error");
// synchronous content
$("#see-footnote").tooltip({
@@ -69,9 +67,8 @@
my: "center top",
at: "center bottom",
offset: "0 10"
- },
- tooltipClass: "ui-state-highlight"
- });
+ }
+ }).tooltip("widget").addClass("ui-state-highlight");
var positionOnTop = {
position: {