4 <script src=
"../resources/js-test.js"></script>
5 <script src=
"resources/compatibility.js"></script>
6 <script src=
"resources/audio-testing.js"></script>
10 description("Verifies that for .mediaElement getters, a wrapper that corresponds to the actual element is created.");
13 function testMediaWrapper(kind
) {
14 var element
= document
.createElement(kind
);
15 var context
= new OfflineAudioContext(1, 1000, 44100);
17 source
= context
.createMediaElementSource(element
);
18 element
= context
= null;
20 shouldBeUndefined('source.mediaElement.nonExistentProperty');
24 testMediaWrapper('audio');
25 testMediaWrapper('video');