1
0
Fork 0
firefox/testing/web-platform/tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-getoutputtimestamp.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

33 lines
1,009 B
HTML

<!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>