blob: 0c442e830d9f98a195c7140878d90228ede2697a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<!DOCTYPE html>
<meta charset="utf-8">
<html class="reftest-wait">
<script>
const script = `
navigator.mediaCapabilities.decodingInfo({
type: 'file',
audio: { contentType: "audio/flac" }
}).then(postMessage("done"));
`;
let worker = new Worker(URL.createObjectURL(new Blob([script])));
// Stop test completion and crash from racing each other.
worker.onmessage = () => document.documentElement.removeAttribute("class");
</script>
</html>
|