Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html

Issue 483863003: Use SpecialWrapFor over HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script>
7 </head>
8 <body>
9 <script>
10 description("Verifies that for .mediaElement getters, a wrapper that corresponds to the actual element is created.");
11
12 var source;
13 function testMediaWrapper(kind) {
14 var element = document.createElement(kind);
15 var context = new webkitOfflineAudioContext(1, 1000, 44100);
16
17 source = context.createMediaElementSource(element);
18 element = context = null;
19 if (window.gc)
haraken 2014/08/19 11:58:23 Nit: You don't need this check. js-test.js has win
20 gc();
21 shouldBeUndefined('source.mediaElement.nonExistentProperty');
22 source = null;
23 }
24
25 testMediaWrapper('audio');
26 testMediaWrapper('video');
27 </script>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698