mirror of
https://github.com/servo/servo.git
synced 2025-09-07 05:28:21 +01:00
Update web-platform-tests to revision 345300fad3945a5f1441fb2b2001109ca48f36e8
This commit is contained in:
parent
71ba247942
commit
05db47be0f
109 changed files with 2576 additions and 1228 deletions
|
@ -58,7 +58,9 @@
|
|||
// Calculate the first zero index in the second channel.
|
||||
let channel1 = buffer.getChannelData(1);
|
||||
let disconnectIndex = disconnectTime * sampleRate;
|
||||
disconnectIndex -= (disconnectIndex) % renderQuantum;
|
||||
disconnectIndex = renderQuantum *
|
||||
Math.floor(
|
||||
(disconnectIndex + renderQuantum - 1) / renderQuantum);
|
||||
let firstZeroIndex = channel1.findIndex(function(element, index) {
|
||||
if (element === 0)
|
||||
return index;
|
||||
|
@ -70,7 +72,6 @@
|
|||
should(
|
||||
firstZeroIndex, 'The index of first zero in the channel #1')
|
||||
.beEqualTo(disconnectIndex);
|
||||
|
||||
})
|
||||
.then(() => task.done());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue