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

Issue 1995583002: Throw exception for non-finite values in setValueCurve (Closed)

Created:
4 years, 7 months ago by Raymond Toy
Modified:
4 years, 7 months ago
Reviewers:
hongchan
CC:
blink-reviews, chromium-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Throw exception for non-finite values in setValueCurve If the curve given to setValueCurveAtTime contains non-finite values, throw an exception. All other AudioParam methods including the value setter or the automation methods do not allow a non-finite value to be specified. The same should be true for the curve values given to setValueCurveAtTime. BUG=612787 TEST=audioparam-setValueCurve-exceptions.html Committed: https://crrev.com/9e1870e6504d085c7b624ae16f55d03e46dc8ef0 Cr-Commit-Position: refs/heads/master@{#396042}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Throw TypeError instead and add a test #

Patch Set 4 : Return nullptr instead #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : Add test #

Patch Set 7 : Update expected results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurve-exceptions.html View 1 2 3 4 5 2 chunks +57 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurve-exceptions-expected.txt View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.cpp View 1 2 3 4 2 chunks +24 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
Raymond Toy
PTAL
4 years, 7 months ago (2016-05-18 16:07:28 UTC) #2
hongchan
lgtm
4 years, 7 months ago (2016-05-19 21:10:58 UTC) #3
Raymond Toy
PTAL
4 years, 7 months ago (2016-05-20 14:20:54 UTC) #4
hongchan
On 2016/05/20 14:20:54, Raymond Toy wrote: > PTAL Question: can we just stop and throw ...
4 years, 7 months ago (2016-05-20 15:54:57 UTC) #5
Raymond Toy
On 2016/05/20 at 15:54:57, hongchan wrote: > On 2016/05/20 14:20:54, Raymond Toy wrote: > > ...
4 years, 7 months ago (2016-05-20 20:40:11 UTC) #6
hongchan
The spec doesn't clarify the behavior on illegal values in the array. http://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueCurveAtTime-AudioParam-Float32Array-values-double-startTime-double-duration Right? I ...
4 years, 7 months ago (2016-05-20 21:14:08 UTC) #7
Raymond Toy
On 2016/05/20 at 21:14:08, hongchan wrote: > The spec doesn't clarify the behavior on illegal ...
4 years, 7 months ago (2016-05-20 21:30:26 UTC) #8
Raymond Toy
https://codereview.chromium.org/1995583002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp File third_party/WebKit/Source/modules/webaudio/AudioParam.cpp (right): https://codereview.chromium.org/1995583002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp#newcode479 third_party/WebKit/Source/modules/webaudio/AudioParam.cpp:479: break; On 2016/05/20 21:14:07, hoch wrote: > So what ...
4 years, 7 months ago (2016-05-20 21:30:41 UTC) #9
hongchan
On 2016/05/20 21:30:41, Raymond Toy wrote: > https://codereview.chromium.org/1995583002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp > File third_party/WebKit/Source/modules/webaudio/AudioParam.cpp (right): > > https://codereview.chromium.org/1995583002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp#newcode479 ...
4 years, 7 months ago (2016-05-24 23:01:42 UTC) #11
Raymond Toy
On 2016/05/24 23:01:42, hoch wrote: > On 2016/05/20 21:30:41, Raymond Toy wrote: > > > ...
4 years, 7 months ago (2016-05-24 23:03:43 UTC) #12
hongchan
On 2016/05/24 23:03:43, Raymond Toy wrote: > On 2016/05/24 23:01:42, hoch wrote: > > On ...
4 years, 7 months ago (2016-05-24 23:28:35 UTC) #13
Raymond Toy
On 2016/05/24 23:28:35, hoch wrote: > On 2016/05/24 23:03:43, Raymond Toy wrote: > > On ...
4 years, 7 months ago (2016-05-24 23:30:49 UTC) #14
Raymond Toy
New test added. PTAL.
4 years, 7 months ago (2016-05-25 16:44:09 UTC) #15
hongchan
lgtm
4 years, 7 months ago (2016-05-25 16:46:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995583002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995583002/140001
4 years, 7 months ago (2016-05-25 16:48:05 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/227966)
4 years, 7 months ago (2016-05-25 20:26:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995583002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995583002/140001
4 years, 7 months ago (2016-05-25 21:47:15 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 7 months ago (2016-05-25 23:45:09 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 23:47:11 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9e1870e6504d085c7b624ae16f55d03e46dc8ef0
Cr-Commit-Position: refs/heads/master@{#396042}

Powered by Google App Engine
This is Rietveld 408576698