1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/tests/mochitest/states/test_controls.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 + <title>HTML control states</title> 1.8 + <link rel="stylesheet" type="text/css" 1.9 + href="chrome://mochikit/content/tests/SimpleTest/test.css" /> 1.10 + 1.11 + <script type="application/javascript" 1.12 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.13 + 1.14 + <script type="application/javascript" 1.15 + src="../common.js"></script> 1.16 + <script type="application/javascript" 1.17 + src="../role.js"></script> 1.18 + <script type="application/javascript" 1.19 + src="../states.js"></script> 1.20 + 1.21 + <script type="application/javascript"> 1.22 + function doTest() 1.23 + { 1.24 + // Undetermined progressbar (no value or aria-value attribute): mixed state 1.25 + testStates("progress", STATE_MIXED); 1.26 + // Determined progressbar (has value): shouldn't have mixed state 1.27 + testStates("progress2", 0, 0, STATE_MIXED); 1.28 + // Determined progressbar (has aria-value): shouldn't have mixed state 1.29 + // testStates("progress3", 0, 0, STATE_MIXED); 1.30 + todo(false, "we should respect ARIA"); 1.31 + 1.32 + SimpleTest.finish(); 1.33 + } 1.34 + 1.35 + SimpleTest.waitForExplicitFinish(); 1.36 + addA11yLoadEvent(doTest); 1.37 + </script> 1.38 +</head> 1.39 + 1.40 +<body> 1.41 + <a target="_blank" 1.42 + href="https://bugzilla.mozilla.org/show_bug.cgi?id=670853" 1.43 + title="Bug 670853 - undetermined progressmeters should expose mixed state"> 1.44 + Mozilla Bug 670853 1.45 + </a> 1.46 + <p id="display"></p> 1.47 + <div id="content" style="display: none"></div> 1.48 + <pre id="test"> 1.49 + </pre> 1.50 + 1.51 + <progress id="progress"></progress> 1.52 + <progress id="progress2" value="1"></progress> 1.53 + <progress id="progress3" aria-valuenow="1"></progress> 1.54 + 1.55 +</body> 1.56 +</html>