<ol id="qunit-tests">
</ol>
-<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
+<div id="qunit-fixture">
<div>
<a id="tooltipped1" href="#" title="anchortitle">anchor</a>
<input title="inputtitle" />
+ <span data-tooltip="text">span</span>
</div>
</div>
test("option: items", function() {
- ok(false, "missing items test");
+ var event = $.Event("mouseenter");
+ event.target = $("[data-tooltip]");
+ $("#qunit-fixture").tooltip({
+ items: "[data-tooltip]",
+ content: function() {
+ return $(this).attr("data-tooltip");
+ }
+ }).tooltip("open", event);
+ same( $(".ui-tooltip").text(), "text" );
});
test("content: default", function() {