blob: 4281f56379bb20f1e173c22c99ab208d2be0fdd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<!DOCTYPE html>
<html>
<head>
<title>
Checking BaseAudioContext.audioWorklet
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/webaudio/resources/audit.js"></script>
</head>
<body>
<script id="layout-test-code">
let audit = Audit.createTaskRunner();
let realtimeContext = new AudioContext();
let offlineContext = new OfflineAudioContext(1, 1, 44100);
// Test if AudioWorklet exists.
audit.define('Test if AudioWorklet exists', (task, should) => {
should(realtimeContext.audioWorklet instanceof AudioWorklet &&
offlineContext.audioWorklet instanceof AudioWorklet,
'BaseAudioContext.audioWorklet is an instance of AudioWorklet')
.beTrue();
task.done();
});
audit.run();
</script>
</body>
</html>
|