From c74d685ceca0efa7fbeacd4e3136809dbd9830cc Mon Sep 17 00:00:00 2001 From: Christoph Guttandin Date: Sun, 1 Dec 2024 06:52:45 +0100 Subject: [PATCH] test: update expectation tests for Firefox v133 --- .../config-expectation-firefox-penultimate.js | 2 +- .../config-expectation-firefox-previous.js | 2 +- .../offline-audio-context-constructor.js | 33 ------------------- 3 files changed, 2 insertions(+), 35 deletions(-) diff --git a/config/karma/config-expectation-firefox-penultimate.js b/config/karma/config-expectation-firefox-penultimate.js index 2d0a83be..e318d33d 100644 --- a/config/karma/config-expectation-firefox-penultimate.js +++ b/config/karma/config-expectation-firefox-penultimate.js @@ -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' } }, diff --git a/config/karma/config-expectation-firefox-previous.js b/config/karma/config-expectation-firefox-previous.js index 03fdf30c..06a24c89 100644 --- a/config/karma/config-expectation-firefox-previous.js +++ b/config/karma/config-expectation-firefox-previous.js @@ -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' } }, diff --git a/test/expectation/firefox/developer/offline-audio-context-constructor.js b/test/expectation/firefox/developer/offline-audio-context-constructor.js index edf121b0..5b4f559b 100644 --- a/test/expectation/firefox/developer/offline-audio-context-constructor.js +++ b/test/expectation/firefox/developer/offline-audio-context-constructor.js @@ -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;