Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>HTML control states</title> |
michael@0 | 5 | <link rel="stylesheet" type="text/css" |
michael@0 | 6 | href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 7 | |
michael@0 | 8 | <script type="application/javascript" |
michael@0 | 9 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | |
michael@0 | 11 | <script type="application/javascript" |
michael@0 | 12 | src="../common.js"></script> |
michael@0 | 13 | <script type="application/javascript" |
michael@0 | 14 | src="../role.js"></script> |
michael@0 | 15 | <script type="application/javascript" |
michael@0 | 16 | src="../states.js"></script> |
michael@0 | 17 | |
michael@0 | 18 | <script type="application/javascript"> |
michael@0 | 19 | function doTest() |
michael@0 | 20 | { |
michael@0 | 21 | // Undetermined progressbar (no value or aria-value attribute): mixed state |
michael@0 | 22 | testStates("progress", STATE_MIXED); |
michael@0 | 23 | // Determined progressbar (has value): shouldn't have mixed state |
michael@0 | 24 | testStates("progress2", 0, 0, STATE_MIXED); |
michael@0 | 25 | // Determined progressbar (has aria-value): shouldn't have mixed state |
michael@0 | 26 | // testStates("progress3", 0, 0, STATE_MIXED); |
michael@0 | 27 | todo(false, "we should respect ARIA"); |
michael@0 | 28 | |
michael@0 | 29 | SimpleTest.finish(); |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 33 | addA11yLoadEvent(doTest); |
michael@0 | 34 | </script> |
michael@0 | 35 | </head> |
michael@0 | 36 | |
michael@0 | 37 | <body> |
michael@0 | 38 | <a target="_blank" |
michael@0 | 39 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=670853" |
michael@0 | 40 | title="Bug 670853 - undetermined progressmeters should expose mixed state"> |
michael@0 | 41 | Mozilla Bug 670853 |
michael@0 | 42 | </a> |
michael@0 | 43 | <p id="display"></p> |
michael@0 | 44 | <div id="content" style="display: none"></div> |
michael@0 | 45 | <pre id="test"> |
michael@0 | 46 | </pre> |
michael@0 | 47 | |
michael@0 | 48 | <progress id="progress"></progress> |
michael@0 | 49 | <progress id="progress2" value="1"></progress> |
michael@0 | 50 | <progress id="progress3" aria-valuenow="1"></progress> |
michael@0 | 51 | |
michael@0 | 52 | </body> |
michael@0 | 53 | </html> |