OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
5 <script> | 5 <script> |
6 description("This tests that the script creation of an audio element with
controls works when accessibility is enabled and does not crash."); | 6 description("This tests that the script creation of an audio element with
controls works when accessibility is enabled and does not crash."); |
7 | 7 |
8 if (window.testRunner && window.accessibilityController) { | 8 if (window.testRunner && window.accessibilityController) { |
9 function createAudio() { | 9 function createAudio() { |
10 var audio = document.createElement('audio'); | 10 var audio = document.createElement('audio'); |
11 audio.setAttribute('controls', 'controls'); | 11 audio.setAttribute('controls', 'controls'); |
12 document.documentElement.appendChild(audio); | 12 document.documentElement.appendChild(audio); |
13 } | 13 } |
14 window.onload = createAudio; | 14 window.onload = createAudio; |
15 } | 15 } |
16 </script> | 16 </script> |
17 <script src="../fast/js/resources/js-test-post.js"></script> | 17 <script src="../fast/js/resources/js-test-post.js"></script> |
18 </body> | 18 </body> |
19 </html> | 19 </html> |
OLD | NEW |