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

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

Issue 2639643002: Move audiocontext-getoutputtimestamp test to AudioContext (Closed)
Patch Set: Convert to new Audit Created 3 years, 11 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/audiocontext-getoutputtimestamp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698