| Index: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-getoutputtimestamp.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-getoutputtimestamp.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-getoutputtimestamp.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e115c7d7ae6754fd0d65438575cf28257a7aeba3
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-getoutputtimestamp.html
|
| @@ -0,0 +1,30 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Testing AudioContext.getOutputTimestamp() method</title>
|
| + <script src="../../resources/testharness.js"></script>
|
| + <script src="../../resources/testharnessreport.js"></script>
|
| + <script src="../resources/audit.js"></script>
|
| +</head>
|
| +<body>
|
| + <script>
|
| + var 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').beEqualTo(0);
|
| + should(timestamp.performanceTime, 'timestamp.performanceTime').beEqualTo(
|
| + 0);
|
| +
|
| + task.done();
|
| + });
|
| +
|
| + audit.run();
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|