Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698