Skip to content

Commit

Permalink
test: update expectation tests for Firefox v133
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Dec 1, 2024
1 parent 70857c3 commit c74d685
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 35 deletions.
2 changes: 1 addition & 1 deletion config/karma/config-expectation-firefox-penultimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = (config) => {
customLaunchers: {
penultimateFirefoxHeadless: {
base: 'FirefoxHeadless',
command: 'firefox-v130/firefox/Firefox.app/Contents/MacOS/firefox'
command: 'firefox-v131/firefox/Firefox.app/Contents/MacOS/firefox'
}
},

Expand Down
2 changes: 1 addition & 1 deletion config/karma/config-expectation-firefox-previous.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = (config) => {
customLaunchers: {
PreviousFirefoxHeadless: {
base: 'FirefoxHeadless',
command: 'firefox-v131/firefox/Firefox.app/Contents/MacOS/firefox'
command: 'firefox-v132/firefox/Firefox.app/Contents/MacOS/firefox'
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,39 +149,6 @@ describe('offlineAudioContextConstructor', () => {
}).to.throw(Error);
});

describe('gain', () => {
describe('value', () => {
// bug #98

it('should ignore the value setter while an automation is running', function () {
this.timeout(10000);

const constantSourceNode = offlineAudioContext.createConstantSource();
const gainNode = offlineAudioContext.createGain();

gainNode.gain.setValueAtTime(-1, 0);
gainNode.gain.linearRampToValueAtTime(1, 0.5);

gainNode.gain.value = 100;

constantSourceNode.connect(gainNode).connect(offlineAudioContext.destination);

constantSourceNode.start();

return offlineAudioContext.startRendering().then((renderedBuffer) => {
const channelData = new Float32Array(0.5 * offlineAudioContext.sampleRate);

renderedBuffer.copyFromChannel(channelData, 0);

for (const sample of channelData) {
expect(sample).to.be.at.least(-1);
expect(sample).to.be.at.most(1);
}
});
});
});
});

describe('cancelAndHoldAtTime()', () => {
let gainNode;

Expand Down

0 comments on commit c74d685

Please sign in to comment.