[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / audio-dealloc-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src=video-test.js></script>
5     <script src=../resources/gc.js></script>
6 </head>
7 <body>
8     <div>Creating and immediately destroying an Audio element should not crash.</div>
9     <script>
10     runWithKeyDown(() => {
11         document.body.innerHTML = '<audio></audio>';
12         document.body.childNodes[0].play().catch(error => {});
13         document.body.innerHTML = '';
14         gc();
15         setTimeout(endTest, 100);
16     });
17     </script>
18 </div>
19 </body>
20 </html>