зеркало из https://github.com/mozilla/gecko-dev.git
bug 1190291 test currentTime at end of OfflineAudioContext rendering r=padenot
--HG-- extra : rebase_source : 69cd3562062c5e09572428b8279c4d622fc5836e
This commit is contained in:
Родитель
da9d3d3591
Коммит
3069169b59
|
@ -28797,7 +28797,16 @@
|
|||
},
|
||||
"local_changes": {
|
||||
"deleted": [],
|
||||
"items": {},
|
||||
"items": {
|
||||
"testharness": {
|
||||
"webaudio/the-audio-api/the-offlineaudiocontext-interface/current-time-block-size.html": [
|
||||
{
|
||||
"path": "webaudio/the-audio-api/the-offlineaudiocontext-interface/current-time-block-size.html",
|
||||
"url": "/webaudio/the-audio-api/the-offlineaudiocontext-interface/current-time-block-size.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reftest_nodes": {}
|
||||
},
|
||||
"reftest_nodes": {
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Test currentTime at completion of OfflineAudioContext rendering</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
promise_test(function() {
|
||||
// sampleRate is a power of two so that time can be represented exactly
|
||||
// in double currentTime.
|
||||
var context = new OfflineAudioContext(1, 1, 65536);
|
||||
return context.startRendering().
|
||||
then(function(buffer) {
|
||||
assert_equals(buffer.length, 1, "buffer length");
|
||||
assert_equals(context.currentTime, 128 / context.sampleRate,
|
||||
"currentTime at completion");
|
||||
});
|
||||
});
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче