blob: 952f38b1edceb62ab3f99c25777ebdb2c59e691a (
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
31
32
33
|
<!DOCTYPE html>
<html>
<head>
<title>
Testing AudioContext.getOutputTimestamp() method
</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();
audit.define('getoutputtimestamp-initial-values', function(task, should) {
let context = new AudioContext;
let timestamp = context.getOutputTimestamp();
should(timestamp.contextTime, 'timestamp.contextTime').exist();
should(timestamp.performanceTime, 'timestamp.performanceTime').exist();
should(timestamp.contextTime, 'timestamp.contextTime')
.beGreaterThanOrEqualTo(0);
should(timestamp.performanceTime, 'timestamp.performanceTime')
.beGreaterThanOrEqualTo(0);
task.done();
});
audit.run();
</script>
</body>
</html>
|