-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=77666 Patch by Raymond Toy <rtoy@google.com> on 2012-03-02 Reviewed by Chris Rogers. Source/WebCore: Tests: webaudio/audioparam-linearRampToValueAtTime.html webaudio/audioparam-setTargetValueAtTime.html webaudio/audioparam-setValueAtTime.html webaudio/audioparam-setValueCurveAtTime.html * webaudio/AudioParamTimeline.cpp: (WebCore::AudioParamTimeline::valuesForTimeRangeImpl): Round the curveIndex to fix timing issue in setValueCurveAtTime. LayoutTests: * webaudio/audioparam-exponentialRampToValueAtTime.html: * webaudio/audioparam-linearRampToValueAtTime-expected.txt: Added. * webaudio/audioparam-linearRampToValueAtTime.html: Added. * webaudio/audioparam-setTargetValueAtTime-expected.txt: Added. * webaudio/audioparam-setTargetValueAtTime.html: Added. * webaudio/audioparam-setValueAtTime-expected.txt: Added. * webaudio/audioparam-setValueAtTime.html: Added. * webaudio/audioparam-setValueCurveAtTime-expected.txt: Added. * webaudio/audioparam-setValueCurveAtTime.html: Added. * webaudio/resources/audioparam-testing.js: (renderLength): (createConstantArray): (createLinearRampArray): (discreteTimeConstantForSampleRate): (createExponentialApproachArray): (createSineWaveArray): (endValueDelta): (valueUpdate): (comparePartialSignals): (verifyDiscontinuities): (compareSignals): (checkResultFunction.return.var): (checkResultFunction): (doAutomation): (createAudioGraphAndTest): * webaudio/resources/audio-testing.js: Moved isValidNumber from biquad-testing.js to here. * webaudio/resources/biquad-testing.js: Moved isValidNumber from here to audio-testing.js. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fd09a7a9