Skip to content
Permalink
Browse files

Tooltip: Added missing items test

  • Loading branch information
jzaefferer committed Feb 11, 2011
1 parent cfa4833 commit c4a7f45dbcd389fa823ee1973ca1fd4a13f6704a
Showing with 11 additions and 2 deletions.
  1. +2 −1 tests/unit/tooltip/tooltip.html
  2. +9 −1 tests/unit/tooltip/tooltip_options.js
@@ -35,10 +35,11 @@ <h2 id="qunit-userAgent"></h2>
<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>

@@ -11,7 +11,15 @@ module("tooltip: options", {


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() {

0 comments on commit c4a7f45

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