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

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

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 3 years, 12 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
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/audit-util.js"></script>
7 <script src="resources/audio-testing.js"></script>
8 </head>
9 <body>
10 <script>
11 description("Verifies that for .mediaElement getters, a wrapper that corresponds to the actual element is created.");
12
13 var source;
14 function testMediaWrapper(kind) {
15 var element = document.createElement(kind);
16 var context = new AudioContext();
17
18 source = context.createMediaElementSource(element);
19 element = context = null;
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

Powered by Google App Engine
This is Rietveld 408576698