Preserve explicit App approval, expose playback and transfer progress, and keep shared identity and native window presentation coherent. Retain terminal fallback, cancel external input safely, and reject withdrawn UDP preparation before adoption. Reuse exact Web artifacts across matched targets and extend the existing text participant with typed history, replies and reactions. Verified Rust/WASM/protocol checks, 1614 Web tests, Windows capture compilation and five external input lifecycle tests.
8 lines
355 B
TypeScript
8 lines
355 B
TypeScript
import { expect, test } from "vitest";
|
||
import { formatMediaTime } from "../src/client/media/media-time";
|
||
|
||
test("media labels preserve real elapsed time and distinguish unknown duration", () => {
|
||
expect([0, 64.9, 3675, Number.NaN, Number.POSITIVE_INFINITY].map(formatMediaTime))
|
||
.toEqual(["0:00", "1:04", "1:01:15", "–:––", "–:––"]);
|
||
});
|