Skip to content

Commit

Permalink
flags for firefox for tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Feb 20, 2025
1 parent 2f4e719 commit 34b09df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions wasmaudioworklet/audioworkletnode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ describe('audioworkletnode', async function() {
});

it('should start audioworklet and play a note that triggers the visualizer', async () => {
if (navigator.userAgent.includes("Firefox/")) {
return;
}
const synthsource = `
import { Kick2 } from "../instruments/drums/kick2.class";
import { SineOscillator } from '../synth/sineoscillator.class';
Expand Down
7 changes: 6 additions & 1 deletion wasmaudioworklet/web-test-runner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export default {
product: 'firefox', launchOptions: {
headless: false,
firefoxUserPrefs: {
'media.autoplay.block-webaudio': false
'media.autoplay.block-webaudio': false, // Allow Web Audio autoplay
'media.autoplay.default': 0, // Allow autoplay for all media
'media.autoplay.allow-extension-background-pages': true,
'media.autoplay.blocking_policy': 0,
'dom.require_user_interaction_for_audio': false, // Remove user gesture requirement
'dom.audiochannel.mutedByDefault': false
}
}
}),
Expand Down
3 changes: 0 additions & 3 deletions wasmaudioworklet/webaudiomodules/yoshimi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ describe("yoshimi", function() {
});

it('should play the yoshimi synth', async () => {
if (navigator.userAgent.includes("Firefox/")) {
return;
}
songsourceeditor.doc.setValue(songsource);
synthsourceeditor.doc.setValue(synthsource);

Expand Down

0 comments on commit 34b09df

Please sign in to comment.