Skip to content
Permalink
Browse files

Tooltip: Enhanced visual test to include a few more buttons and a hig…

…h element to get a scrollbar
  • Loading branch information...
jzaefferer committed May 15, 2010
1 parent d3077c3 commit 9f56913dcc247b6aad4cea752d744ebf7775f794
Showing with 14 additions and 5 deletions.
  1. +14 −5 tests/visual/tooltip/tooltip.html
@@ -55,18 +55,25 @@
tooltipClass: "ui-state-highlight"
});
$("#button1").button().tooltip();
var positionOnTop = {
position: {
my: "center bottom",
at: "center top",
offset: "0 -5"
}
};
$("#button1").button().tooltip(positionOnTop);
$("#button2").button({
icons: {
primary: "ui-icon-wrench"
}
}).tooltip();
$("#button3").button({
}).tooltip(positionOnTop);
$("#button3, #button4").button({
icons: {
primary: "ui-icon-wrench"
},
text: false
}).tooltip();
}).tooltip(positionOnTop);
}
enable();
@@ -136,14 +143,16 @@

<button id="button1" title="Button Tooltip">Button Label</button>
<button id="button2" title="Icon Button">Button with Icon</button>
<button id="button3">Icon Only Button</button>
<button id="button3">Icon Only Button 1</button>
<button id="button4">Icon Only Button 2</button>

<div id="footnote">This is <strong>the</strong> footnote, including other elements</div>

<button id="disable">Toggle disabled</button>
<button id="toggle">Toggle widget</button>
</div>

<div style="height: 2000px"></div>

</body>
</html>

0 comments on commit 9f56913

Please sign in to comment.
You can’t perform that action at this time.