aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar/methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/progressbar/methods.js')
-rw-r--r--tests/unit/progressbar/methods.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/progressbar/methods.js b/tests/unit/progressbar/methods.js
index 00de2f46e..4bc4fa65e 100644
--- a/tests/unit/progressbar/methods.js
+++ b/tests/unit/progressbar/methods.js
@@ -9,8 +9,8 @@ test( "destroy", function( assert ) {
expect( 1 );
assert.domEqual( "#progressbar", function() {
$( "#progressbar" ).progressbar().progressbar( "destroy" );
- });
-});
+ } );
+} );
test( "disable", function( assert ) {
expect( 3 );
@@ -20,16 +20,16 @@ test( "disable", function( assert ) {
assert.hasClasses( element.progressbar( "widget" ), "ui-state-disabled" );
ok( element.progressbar( "widget" ).attr( "aria-disabled" ), "element gets aria-disabled" );
assert.hasClasses( element.progressbar( "widget" ), "ui-progressbar-disabled" );
-});
+} );
test( "value", function() {
expect( 3 );
- var element = $( "<div>" ).progressbar({ value: 20 });
+ var element = $( "<div>" ).progressbar( { value: 20 } );
equal( element.progressbar( "value" ), 20, "correct value as getter" );
strictEqual( element.progressbar( "value", 30 ), element, "chainable as setter" );
equal( element.progressbar( "option", "value" ), 30, "correct value after setter" );
-});
+} );
test( "widget", function() {
expect( 2 );
@@ -37,6 +37,6 @@ test( "widget", function() {
widgetElement = element.progressbar( "widget" );
equal( widgetElement.length, 1, "one element" );
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
-});
+} );
} );