aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar/progressbar_core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-07-15 09:40:38 -0400
committerScott González <scott.gonzalez@gmail.com>2015-07-15 09:40:38 -0400
commit71d8f16ad4bc60d8946cf73f4b0c0bc99840e6ab (patch)
treea48489064648b2cbb59772d8a62f4fb66496ed4f /tests/unit/progressbar/progressbar_core.js
parenta3df6dd8a8e363a276392acd7744f7db1e75eb61 (diff)
parentde4984da244289c259e8fc8d1106898908b6ffce (diff)
downloadjquery-ui-71d8f16ad4bc60d8946cf73f4b0c0bc99840e6ab.tar.gz
jquery-ui-71d8f16ad4bc60d8946cf73f4b0c0bc99840e6ab.zip
Merge branch 'master' into datepicker
Diffstat (limited to 'tests/unit/progressbar/progressbar_core.js')
-rw-r--r--tests/unit/progressbar/progressbar_core.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/unit/progressbar/progressbar_core.js b/tests/unit/progressbar/progressbar_core.js
deleted file mode 100644
index 8f4a138ce..000000000
--- a/tests/unit/progressbar/progressbar_core.js
+++ /dev/null
@@ -1,53 +0,0 @@
-module( "progressbar: core" );
-
-test( "markup structure", function() {
- expect( 5 );
- var element = $( "#progressbar" ).progressbar();
- ok( element.hasClass( "ui-progressbar" ), "main element is .ui-progressbar" );
- ok( !element.hasClass( "ui-progressbar-indeterminate" ),
- "main element is not .ui-progressbar-indeterminate" );
- equal( element.children().length, 1, "main element contains one child" );
- ok( element.children().eq( 0 ).hasClass( "ui-progressbar-value" ),
- "child is .ui-progressbar-value" );
- equal( element.children().children().length, 0, "no overlay div" );
-});
-
-test( "markup structure - indeterminate", function() {
- expect( 5 );
- var element = $( "#progressbar" ).progressbar({ value: false });
- ok( element.hasClass( "ui-progressbar" ), "main element is .ui-progressbar" );
- ok( element.hasClass( "ui-progressbar-indeterminate" ),
- "main element is .ui-progressbar-indeterminate" );
- equal( element.children().length, 1, "main element contains one child" );
- ok( element.children().eq( 0 ).hasClass( "ui-progressbar-value" ),
- "child is .ui-progressbar-value" );
- equal( element.children().children( ".ui-progressbar-overlay" ).length, 1,
- ".ui-progressbar-value has .ui-progressbar-overlay" );
-});
-
-test( "accessibility", function() {
- expect( 11 );
- var element = $( "#progressbar" ).progressbar();
-
- equal( element.attr( "role" ), "progressbar", "aria role" );
- equal( element.attr( "aria-valuemin" ), 0, "aria-valuemin" );
- equal( element.attr( "aria-valuemax" ), 100, "aria-valuemax" );
- equal( element.attr( "aria-valuenow" ), 0, "aria-valuenow initially" );
-
- element.progressbar( "value", 77 );
- equal( element.attr( "aria-valuenow" ), 77, "aria-valuenow" );
-
- element.progressbar( "option", "max", 150 );
- equal( element.attr( "aria-valuemax" ), 150, "aria-valuemax" );
-
- element.progressbar( "disable" );
- equal( element.attr( "aria-disabled" ), "true", "aria-disabled on" );
-
- element.progressbar( "enable" );
- equal( element.attr( "aria-disabled" ), "false", "aria-disabled off" );
-
- element.progressbar( "option", "value", false );
- equal( element.attr( "aria-valuemin" ), 0, "aria-valuemin" );
- equal( element.attr( "aria-valuemax" ), 150, "aria-valuemax" );
- strictEqual( element.attr( "aria-valuenow" ), undefined, "aria-valuenow" );
-});