Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
4 type="text/css"?>
6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
7 title="XUL progressmeter tests">
9 <script type="application/javascript"
10 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
12 <script type="application/javascript"
13 src="../common.js" />
14 <script type="application/javascript"
15 src="../value.js" />
17 <script type="application/javascript">
18 <![CDATA[
19 function doTest()
20 {
21 // progressmeter
22 testValue("pm1", "50%", 50, 0, 100, 0);
23 testValue("pm2", "50%", 500, 0, 1000, 0);
24 testValue("pm3", "", 0, 0, 100, 0);
26 // scale
27 testValue("sc1", "500", 500, 0, 1000, 10);
28 testValue("sc2", "", 0, 0, 0, 0);
30 // aria progressbar
31 testValue("ariapb1", "500", 500, 0, 1000, 0);
32 testValue("ariapb2", "", 0, 0, 0, 0);
34 SimpleTest.finish();
35 }
37 SimpleTest.waitForExplicitFinish();
38 addA11yLoadEvent(doTest);
39 ]]>
40 </script>
42 <hbox flex="1" style="overflow: auto;">
43 <body xmlns="http://www.w3.org/1999/xhtml">
44 <a target="_blank"
45 href="https://bugzilla.mozilla.org/show_bug.cgi?id=489551"
46 title="Values of sliders and progress bars in HTML 5 audio and video element's control sets are not percentages">
47 Mozilla Bug 489551
48 </a><br/>
49 <p id="display"></p>
50 <div id="content" style="display: none">
51 </div>
52 <pre id="test">
53 </pre>
54 </body>
56 <!-- progressmeter -->
57 <progressmeter id="pm1" value="50"/>
58 <progressmeter id="pm2" value="500" max="1000"/>
59 <progressmeter id="pm3"/>
61 <!-- scale -->
62 <scale id="sc1" value="500" max="1000" increment="10"/>
63 <scale id="sc2"/>
65 <!-- aria -->
66 <description id="ariapb1" role="progressbar"
67 aria-valuenow="500" aria-valuemin="0" aria-valuemax="1000"/>
68 <description id="ariapb2" role="progressbar"/>
69 </hbox>
71 </window>