perf(movimento): vitrine e 3D mais leves, WebGL por software lembrado na sessão e suporte ao WebKit
This commit is contained in:
1 parent
9fd1570426
commit
8903f3c57e
28 files changed
+854
-406
No files matched your search
@@ -219,15 +219,18 @@ describe("ProjectLightbox", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps 0:00 / 0:00 until the metadata is there, then reads the duration from the playback tick", () => {
|
||||
it("shows –:– / –:– until the duration is there, then reads it from the playback tick", () => {
|
||||
const frames: FrameRequestCallback[] = [];
|
||||
jest.spyOn(window, "requestAnimationFrame").mockImplementation((cb) => {
|
||||
frames.push(cb);
|
||||
return frames.length;
|
||||
});
|
||||
const dialog = setup();
|
||||
expect(dialog.querySelector(".ds-lb-time")?.textContent).toBe(
|
||||
"0:00 / 0:00",
|
||||
expect(dialog.querySelector(".ds-lb-time")?.textContent).toBe("–:– / –:–");
|
||||
// o leitor de tela também não ouve "0:00 de 0:00"
|
||||
expect(dialog.querySelector(".ds-lb-range")).toHaveAttribute(
|
||||
"aria-valuetext",
|
||||
"duração ainda não carregada",
|
||||
);
|
||||
|
||||
const video = dialog.querySelector("video") as HTMLVideoElement;
|
||||
|
||||
Reference in new issue
Block a user