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

Side by Side 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 3 years, 12 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Testing AudioContext.getOutputTimestamp() method</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="resources/audio-testing.js"></script>
8 </head>
9 <body>
10 <script>
11 var audit = Audit.createTaskRunner();
12
13 audit.defineTask('getoutputtimestamp-initial-values', function (taskDone) {
14 let context = new AudioContext;
15 let timestamp = context.getOutputTimestamp();
16
17 Should('timestamp.contextTime', timestamp.contextTime).exist();
18 Should('timestamp.performanceTime', timestamp.performanceTime).exist();
19
20 Should('timestamp.contextTime', timestamp.contextTime).beEqualTo(0);
21 Should('timestamp.performanceTime', timestamp.performanceTime).beEqualTo(0 );
22
23 taskDone();
24 });
25
26 audit.runTasks();
27 </script>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698