<meta charset="utf-8">
<title>jQuery UI Tooltip Test Suite</title>
- <script src="../../jquery.js"></script>
- <script>
- $.uiBackCompat = false;
- </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.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="../swarminject.js"></script>
+ <script src="../../lib/css.js" data-modules="core tooltip"></script>
+ <script src="../../lib/bootstrap.js" data-widget="tooltip" data-no-back-compat="true"></script>
</head>
<body>
-TestHelpers.commonWidgetTests( "tooltip", {
+define( [
+ "lib/common",
+ "ui/tooltip"
+], function( common ) {
+
+common.testWidget( "tooltip", {
defaults: {
classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow"
open: null
}
});
+
+} );
-TestHelpers.commonWidgetTests( "tooltip", {
+define( [
+ "lib/common",
+ "ui/tooltip"
+], function( common ) {
+
+common.testWidget( "tooltip", {
defaults: {
classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow"
open: null
}
});
+
+} );
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/tooltip"
+], function( $ ) {
module( "tooltip: core" );
step1();
});
-}( jQuery ) );
+} );
<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>
+ <script src="../../lib/css.js" data-modules="core tooltip"></script>
+ <script src="../../lib/bootstrap.js" data-widget="tooltip" data-deprecated="true"></script>
</head>
<body>
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/tooltip"
+], function( $ ) {
module( "tooltip: (deprecated) options" );
assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
});
-}( jQuery ) );
+} );
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/tooltip"
+], function( $ ) {
module( "tooltip: events" );
element.trigger( "focusout" );
});
-}( jQuery ) );
+} );
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/tooltip"
+], function( $ ) {
module( "tooltip: methods" );
-test( "destroy", function() {
+test( "destroy", function( assert ) {
expect( 3 );
var element = $( "#tooltipped1" );
- domEqual( "#tooltipped1", function() {
+ assert.domEqual( "#tooltipped1", function() {
element.tooltip().tooltip( "destroy" );
});
// make sure that open tooltips are removed on destroy
- domEqual( "#tooltipped1", function() {
+ assert.domEqual( "#tooltipped1", function() {
element
.tooltip()
.tooltip( "open", $.Event( "mouseover", { target: element[0] }) )
} );
});
-}( jQuery ) );
+} );
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/tooltip"
+], function( $ ) {
module( "tooltip: options" );
equal( "inputtitle", $( ".ui-tooltip" ).text() );
});
-}( jQuery ) );
+} );