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

Side by Side Diff: LayoutTests/webaudio/mediaelementaudiosourcenode-same-origin.html

Issue 520433002: Output silence if the MediaElementAudioSourceNode has a different origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use correct names for the test files. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <script src="resources/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script>
6 <script src="resources/mediaelementaudiosourcenode-test.js"></script>
7 <script src="../resources/js-test.js"></script>
8 </head>
9
10 <body>
11 <div id="description"></div>
12 <div id="console"></div>
13
14 <script>
15 description("MediaElementAudioSourceNode with same-origin source");
16
17 var src = "resources/hyper-reality/laughter.wav";
18
19 function checkResult (e) {
20 var data = e.renderedBuffer.getChannelData(0);
21 var count = 0;
22 for (var k = 0; k < data.length; ++k) {
23 if (data[k] != 0) {
24 ++count;
25 }
26 }
27 if (count > 0) {
28 testPassed("Correctly found some non-zero values.");
29 } else {
30 testFailed("All samples incorrectly zeroed.");
31 }
32 }
33
34 runTest(src, checkResult);
35
36 </script>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698