Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0

This commit is contained in:
Ms2ger 2016-09-09 09:40:35 +02:00
parent 1d40075f03
commit 079092dfea
2381 changed files with 90360 additions and 17722 deletions

View file

@ -8,7 +8,7 @@ array, and after the playback has stopped, the contents are compared
to those of a loaded AudioBuffer with the same source.
Somewhat similiar to a test from Mozilla:
(http://mxr.mozilla.org/mozilla-central/source/content/media/webaudio/test/test_mediaElementAudioSourceNode.html?force=1)
(http://dxr.mozilla.org/mozilla-central/source/content/media/webaudio/test/test_mediaElementAudioSourceNode.html?force=1)
-->
<html class="a">

View file

@ -0,0 +1,31 @@
<!doctype html>
<meta charset=utf-8>
<title></title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
promise_test(function(t) {
var ac = new OfflineAudioContext(2, 2048, 44100);
var panner = ac.createPanner();
panner.positionX.value = -1;
panner.positionY.value = -1;
panner.positionZ.value = 1;
panner.positionX.setValueAtTime(1, 1024/ac.sampleRate);
var osc = ac.createOscillator();
osc.connect(panner);
panner.connect(ac.destination);
osc.start()
return ac.startRendering().then(function(buffer) {
var left = buffer.getChannelData(0);
var right = buffer.getChannelData(1);
for (var i = 0; i < 2048; ++i) {
if (i < 1024) {
assert_true(Math.abs(left[i]) >= Math.abs(right[i]), "index " + i + " should be on the left");
} else {
assert_true(Math.abs(left[i]) < Math.abs(right[i]), "index " + i + " should be on the right");
}
}
});
}, "PannerNode AudioParam automation works properly");
</script>

View file

@ -3,8 +3,8 @@
<head>
<title>WaveShaperNode interface - Curve tests | WebAudio</title>
<script type="text/javascript" src="../../../resources/testharness.js"></script>
<script type="text/javascript" src="../../../resources/testharnessreport.js"></script>
<script type="text/javascript" src="/resources/testharness.js"></script>
<script type="text/javascript" src="/resources/testharnessreport.js"></script>
<script type="text/javascript" src="../../js/vendor-prefixes.js"></script>
</head>
<body>