Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
142 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
TestHelpers.commonWidgetTests( "tooltip", { | ||
defaults: { | ||
classes: { | ||
"ui-tooltip": "ui-corner-all ui-widget-shadow" | ||
}, | ||
content: function() {}, | ||
disabled: false, | ||
hide: true, | ||
items: "[title]:not([disabled])", | ||
position: { | ||
my: "left top+15", | ||
at: "left bottom", | ||
collision: "flipfit flip" | ||
}, | ||
show: true, | ||
tooltipClass: null, | ||
track: false, | ||
|
||
// callbacks | ||
close: null, | ||
create: null, | ||
open: null | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>jQuery UI Tooltip Test Suite</title> | ||
|
||
<script src="../../jquery.js"></script> | ||
<link rel="stylesheet" href="../../../external/qunit/qunit.css"> | ||
<script src="../../../external/qunit/qunit.js"></script> | ||
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script> | ||
<script src="../testsuite.js"></script> | ||
<script src="../../../external/qunit-assert-classes/qunit-assert-classes.js"></script> | ||
<script> | ||
TestHelpers.loadResources({ | ||
css: [ "core", "tooltip" ], | ||
js: [ | ||
"ui/core.js", | ||
"ui/widget.js", | ||
"ui/position.js", | ||
"ui/tooltip.js" | ||
] | ||
}); | ||
</script> | ||
|
||
<script src="tooltip_common_deprecated.js"></script> | ||
<script src="tooltip_core.js"></script> | ||
<script src="tooltip_events.js"></script> | ||
<script src="tooltip_methods.js"></script> | ||
<script src="tooltip_options.js"></script> | ||
<script src="tooltip_deprecated.js"></script> | ||
|
||
<script src="../swarminject.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div id="qunit"></div> | ||
<div id="qunit-fixture"> | ||
|
||
<div> | ||
<a id="tooltipped1" href="#" title="anchortitle">anchor</a> | ||
<input title="inputtitle"> | ||
<span id="multiple-describedby" aria-describedby="fixture-span" title="...">aria-describedby</span> | ||
<span id="fixture-span" title="title-text">span</span> | ||
<span id="contains-tooltipped" title="parent"><span id="contained-tooltipped" title="child">baz</span></span> | ||
</div> | ||
|
||
<form id="tooltip-form"> | ||
<input name="title" title="attroperties"> | ||
</form> | ||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(function( $ ) { | ||
|
||
module( "tooltip: (deprecated) options" ); | ||
|
||
test( "tooltipClass", function() { | ||
expect( 1 ); | ||
var element = $( "#tooltipped1" ).tooltip({ | ||
tooltipClass: "custom" | ||
}).tooltip( "open" ); | ||
ok( $( "#" + element.data( "ui-tooltip-id" ) ).hasClass( "custom" ) ); | ||
}); | ||
|
||
}( jQuery ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters