Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: controls</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 </head>
8 <body>
9 <video id='v1'></video><audio id='a1'></audio>
10 <video id='v2' controls></video><audio id='a2' controls></audio>
11 <pre id="test">
12 <script class="testbody" type="text/javascript">
13 var v1 = document.getElementById('v1');
14 var a1 = document.getElementById('a1');
15 var v2 = document.getElementById('v2');
16 var a2 = document.getElementById('a2');
17 ok(!v1.controls, "v1.controls should be false by default");
18 ok(!a1.controls, "v1.controls should be false by default");
19 ok(v2.controls, "v2.controls should be true");
20 ok(a2.controls, "v2.controls should be true");
21 v2.controls=false;
22 a2.controls=false;
23 ok(!v2.controls, "v2.controls should be false");
24 ok(!a2.controls, "a2.controls should be false");
25 v2.controls=true;
26 a2.controls=true;
27 ok(v2.controls, "v2.controls should be true");
28 ok(a2.controls, "a2.controls should be true");
30 </script>
31 </pre>
32 </body>
33 </html>