4 <title>Media test: autoplay attribute get
</title>
5 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
6 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
10 <video id='v1'
></video><audio id='a1'
></audio>
11 <video id='v2' autoplay
></video><audio id='a2' autoplay
></audio>
13 <script class=
"testbody" type=
"text/javascript">
14 var v1 = document.getElementById('v1');
15 var a1 = document.getElementById('a1');
16 var v2 = document.getElementById('v2');
17 var a2 = document.getElementById('a2');
18 ok(!v1.autoplay,
"v1.autoplay should be false by default");
19 ok(!a1.autoplay,
"v1.autoplay should be false by default");
20 ok(v2.autoplay,
"v2.autoplay should be true");
21 ok(a2.autoplay,
"v2.autoplay should be true");
25 ok(v1.autoplay,
"video.autoplay not true");
26 ok(v1.autoplay,
"audio.autoplay not true");