mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 22:03:41 +00:00
feat: add FFmpeg WASM runtime (#1512)
This commit is contained in:
31 files changed
+2305
-24
No files matched your search
@@ -1484,6 +1484,7 @@ func TestDownloader_ExtensionRuntimeWebViewInjected(t *testing.T) {
|
||||
value, err := runtime.Eval(`(async () => ({
|
||||
hasRuntime: !!gopeed.runtime,
|
||||
hasBlob: !!(gopeed.runtime && gopeed.runtime.blob),
|
||||
hasFFmpegMerge: typeof gopeed.runtime.ffmpeg.merge,
|
||||
hasCreateObjectURL: typeof gopeed.runtime.blob.createObjectURL,
|
||||
hasRevokeObjectURL: typeof gopeed.runtime.blob.revokeObjectURL,
|
||||
hasWebView: !!(gopeed.runtime && gopeed.runtime.webview),
|
||||
@@ -1502,6 +1503,9 @@ func TestDownloader_ExtensionRuntimeWebViewInjected(t *testing.T) {
|
||||
if result["hasRuntime"] != true {
|
||||
t.Fatalf("expected runtime injection, got %#v", result)
|
||||
}
|
||||
if result["hasFFmpegMerge"] != "function" {
|
||||
t.Fatalf("expected ffmpeg injection, got %#v", result)
|
||||
}
|
||||
if result["hasBlob"] != true {
|
||||
t.Fatalf("expected blob injection, got %#v", result)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user