Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / constructors.html
blob61125eeeff7e91a43db73dcf8ea8c065d73b5750
1 <body>
2 <p>Test that media constructors behave consistently.</p>
3 <video></video>
4 <audio></audio>
5 <script src=video-test.js></script>
6 <script>
7 var audioJS = new Audio();
8 var videoElem = document.getElementsByTagName('video')[0];
9 var audioElem = document.getElementsByTagName('audio')[0];
10 testExpected("audioJS instanceof HTMLAudioElement", true);
11 testExpected("audioJS instanceof HTMLMediaElement", true);
12 testExpected("audioJS instanceof HTMLVideoElement", false);
13 testExpected("audioElem instanceof HTMLAudioElement", true);
14 testExpected("audioElem instanceof HTMLMediaElement", true);
15 testExpected("audioElem instanceof HTMLVideoElement", false);
16 testExpected("videoElem instanceof HTMLVideoElement", true);
17 testExpected("videoElem instanceof HTMLMediaElement", true);
18 testExpected("videoElem instanceof HTMLAudioElement", false);
19 endTest();
20 </script>