(attrs: Record<string, string>)
| 14 | } |
| 15 | |
| 16 | function createAudio(attrs: Record<string, string>): HTMLAudioElement { |
| 17 | const el = document.createElement("audio"); |
| 18 | for (const [key, value] of Object.entries(attrs)) { |
| 19 | el.setAttribute(key, value); |
| 20 | } |
| 21 | Object.defineProperty(el, "duration", { value: NaN, writable: true, configurable: true }); |
| 22 | document.body.appendChild(el); |
| 23 | return el; |
| 24 | } |
| 25 | |
| 26 | describe("readElementPlaybackRate", () => { |
| 27 | it("reads defaultPlaybackRate from element", () => { |
no test coverage detected