photoprism/frontend/tests/unit/common/caniuse_test.js
Michael Mayer b44b8d52c1 WebP: Add support for indexing and playing animations #3197 #668
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 20:58:21 +01:00

48 lines
816 B
JavaScript

import "../fixtures";
import {
canUseAv1,
canUseAvc,
canUseHevc,
canUseOGV,
canUseVideo,
canUseVP8,
canUseVP9,
canUseWebM,
} from "common/caniuse";
let chai = require("chai/chai");
let assert = chai.assert;
describe("common/caniuse", () => {
it("canUseVideo", () => {
assert.equal(canUseVideo, true);
});
it("canUseAvc", () => {
assert.equal(canUseAvc, true);
});
it("canUseOGV", () => {
assert.equal(canUseOGV, true);
});
it("canUseVP8", () => {
assert.equal(canUseVP8, true);
});
it("canUseVP9", () => {
assert.equal(canUseVP9, true);
});
it("canUseAv1", () => {
assert.equal(canUseAv1, true);
});
it("canUseWebM", () => {
assert.equal(canUseWebM, true);
});
it("canUseHevc", () => {
assert.equal(canUseHevc, false);
});
});