Index: LayoutTests/webaudio/mediaelementaudiosourcenode-same-origin.html |
diff --git a/LayoutTests/webaudio/mediaelementaudiosourcenode-same-origin.html b/LayoutTests/webaudio/mediaelementaudiosourcenode-same-origin.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94745b181dc1d73c5777822133164e1ca78fa5b4 |
--- /dev/null |
+++ b/LayoutTests/webaudio/mediaelementaudiosourcenode-same-origin.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
+<html> |
+ <head> |
+ <script src="resources/compatibility.js"></script> |
+ <script src="resources/audio-testing.js"></script> |
+ <script src="resources/mediaelementaudiosourcenode-test.js"></script> |
+ <script src="../resources/js-test.js"></script> |
+ </head> |
+ |
+ <body> |
+ <div id="description"></div> |
+ <div id="console"></div> |
+ |
+ <script> |
+ description("MediaElementAudioSourceNode with same-origin source"); |
+ |
+ var src = "resources/hyper-reality/laughter.wav"; |
+ |
+ function checkResult (e) { |
+ var data = e.renderedBuffer.getChannelData(0); |
+ var count = 0; |
+ for (var k = 0; k < data.length; ++k) { |
+ if (data[k] != 0) { |
+ ++count; |
+ } |
+ } |
+ if (count > 0) { |
+ testPassed("Correctly found some non-zero values."); |
+ } else { |
+ testFailed("All samples incorrectly zeroed."); |
+ } |
+ } |
+ |
+ runTest(src, checkResult); |
+ |
+ </script> |
+ </body> |
+</html> |