diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 230c3ef2da..f968ccaab7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -162,18 +162,18 @@ jobs: # Run the verification in Chrome echo "Verifying browser environment..." npx mocha-headless-chrome \ - --args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation" \ + --args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation --disable-web-security --allow-insecure-localhost" \ -a no-sandbox \ -f http://localhost:3000/verify-browser.html # Run MT tests with verified configuration npx mocha-headless-chrome \ - --args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation" \ + --args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation --disable-web-security --allow-insecure-localhost" \ -a no-sandbox \ -f http://localhost:3000/tests/ffmpeg-core-mt.test.html 2>&1 | tee mt-core-test.log npx mocha-headless-chrome \ - --args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation" \ + --args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation --disable-web-security --allow-insecure-localhost" \ -a no-sandbox \ -f http://localhost:3000/tests/ffmpeg-mt.test.html 2>&1 | tee mt-test.log diff --git a/tests/ffmpeg-core-mt.test.html b/tests/ffmpeg-core-mt.test.html index cb73792a02..e56c2d66e8 100644 --- a/tests/ffmpeg-core-mt.test.html +++ b/tests/ffmpeg-core-mt.test.html @@ -1,7 +1,6 @@ - diff --git a/tests/ffmpeg-core-st.test.html b/tests/ffmpeg-core-st.test.html index 5ed8ec628a..7b40f6ac91 100644 --- a/tests/ffmpeg-core-st.test.html +++ b/tests/ffmpeg-core-st.test.html @@ -1,27 +1,31 @@ - - - FFmpeg Unit Test - - - -
- - - - - - - - - + + + + + + + FFmpeg Unit Test + + + +
+ + + + + + + + + diff --git a/tests/ffmpeg-st.test.html b/tests/ffmpeg-st.test.html index 7df3b66ec0..d6d1ba6c52 100644 --- a/tests/ffmpeg-st.test.html +++ b/tests/ffmpeg-st.test.html @@ -1,28 +1,33 @@ - - - FFmpeg Unit Test - - - -
- - - - - - - - - + + + + + + + FFmpeg Unit Test + + + +
+ + + + + + + + + diff --git a/tests/ffmpeg.test.js b/tests/ffmpeg.test.js index 882a9d2d82..727da2ece3 100644 --- a/tests/ffmpeg.test.js +++ b/tests/ffmpeg.test.js @@ -1,6 +1,4 @@ -import { FFmpegWASM } from "@ffmpeg/ffmpeg"; - -const { FFmpeg } = FFmpegWASM; +const { FFmpeg } = window.FFmpegWASM; const genName = (name) => `[ffmpeg][${FFMPEG_TYPE}] ${name}`;