Tests: Fix missing wrappers in progressbar tests

This commit is contained in:
Jörn Zaefferer 2015-01-25 15:39:06 +01:00
parent 60c00cd4ec
commit 9a28197f89
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,5 @@
(function( $ ) {
module( "progressbar: core" ); module( "progressbar: core" );
test( "markup structure", function() { test( "markup structure", function() {
@ -51,3 +53,5 @@ test( "accessibility", function() {
equal( element.attr( "aria-valuemax" ), 150, "aria-valuemax" ); equal( element.attr( "aria-valuemax" ), 150, "aria-valuemax" );
strictEqual( element.attr( "aria-valuenow" ), undefined, "aria-valuenow" ); strictEqual( element.attr( "aria-valuenow" ), undefined, "aria-valuenow" );
}); });
}( jQuery ) );

View File

@ -1,3 +1,5 @@
(function( $ ) {
module( "progressbar: events" ); module( "progressbar: events" );
test( "create", function() { test( "create", function() {
@ -49,3 +51,5 @@ test( "complete", function() {
value = 100; value = 100;
element.progressbar( "value", value ); element.progressbar( "value", value );
}); });
}( jQuery ) );

View File

@ -1,3 +1,5 @@
(function( $ ) {
module( "progressbar: methods" ); module( "progressbar: methods" );
test( "destroy", function() { test( "destroy", function() {
@ -33,3 +35,5 @@ test( "widget", function() {
equal( widgetElement.length, 1, "one element" ); equal( widgetElement.length, 1, "one element" );
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" ); strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
}); });
}( jQuery ) );

View File

@ -1,3 +1,5 @@
(function( $ ) {
module( "progressbar: options" ); module( "progressbar: options" );
test( "{ value: 0 }, default", function() { test( "{ value: 0 }, default", function() {
@ -70,3 +72,5 @@ test( "change max below value", function() {
equal( $( "#progressbar" ).progressbar( "value" ), 5, equal( $( "#progressbar" ).progressbar( "value" ), 5,
"value constrained at max" ); "value constrained at max" );
}); });
}( jQuery ) );