Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
794 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * progressbar_core.js
|
---|
3 | */
|
---|
4 |
|
---|
5 | var el;
|
---|
6 |
|
---|
7 | (function($) {
|
---|
8 |
|
---|
9 | module("progressbar: core");
|
---|
10 |
|
---|
11 | test("accessibility", function() {
|
---|
12 | expect(7);
|
---|
13 | el = $("#progressbar").progressbar();
|
---|
14 |
|
---|
15 | equals(el.attr("role"), "progressbar", "aria role");
|
---|
16 | equals(el.attr("aria-valuemin"), 0, "aria-valuemin");
|
---|
17 | equals(el.attr("aria-valuemax"), 100, "aria-valuemax");
|
---|
18 | equals(el.attr("aria-valuenow"), 0, "aria-valuenow initially");
|
---|
19 | el.progressbar("value", 77);
|
---|
20 | equals(el.attr("aria-valuenow"), 77, "aria-valuenow");
|
---|
21 | el.progressbar("disable");
|
---|
22 | equals(el.attr("aria-disabled"), "true", "aria-disabled on");
|
---|
23 | el.progressbar("enable");
|
---|
24 | // FAIL: for some reason IE6 returns a boolean false instead of the string
|
---|
25 | equals(el.attr("aria-disabled"), "false", "aria-disabled off");
|
---|
26 | });
|
---|
27 |
|
---|
28 | })(jQuery);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.