| Index: third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html b/third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..905d74b3be19442d68c50e5e3623992430463716
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html
|
| @@ -0,0 +1,29 @@
|
| +<!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/audio-testing.js"></script>
|
| +</head>
|
| +<body>
|
| + <script>
|
| + var audit = Audit.createTaskRunner();
|
| +
|
| + audit.defineTask('getoutputtimestamp-initial-values', function (taskDone) {
|
| + 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);
|
| +
|
| + taskDone();
|
| + });
|
| +
|
| + audit.runTasks();
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|