mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
575baa0e2c
Added expect(0) to make tabs and tooltip tests pass, even though those assertions are actually missing. Introduces dialog and slider failures when running in composite all.html suite, all green when running one by one, also all-active.html is green.
28 lines
755 B
JavaScript
28 lines
755 B
JavaScript
(function( $ ) {
|
|
|
|
module( "tooltip: core" );
|
|
|
|
test( "markup structure", function() {
|
|
expect( 6 );
|
|
var element = $( "#tooltipped1" ).tooltip(),
|
|
tooltip = $( ".ui-tooltip" );
|
|
|
|
equal( element.attr( "aria-describedby" ), undefined, "no aria-describedby on init" );
|
|
equal( tooltip.length, 0, "no tooltip on init" );
|
|
|
|
element.tooltip( "open" );
|
|
tooltip = $( "#" + element.attr( "aria-describedby" ) );
|
|
equal( tooltip.length, 1, "tooltip exists" );
|
|
ok( tooltip.hasClass( "ui-tooltip" ), "tooltip is .ui-tooltip" );
|
|
equal( tooltip.length, 1, ".ui-tooltip exists" );
|
|
equal( tooltip.find( ".ui-tooltip-content" ).length, 1,
|
|
".ui-tooltip-content exists" );
|
|
});
|
|
|
|
test( "accessibility", function() {
|
|
// TODO: add tests
|
|
expect( 0 );
|
|
});
|
|
|
|
}( jQuery ) );
|