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

Issue 2656993002: Throw TypeError instead of InvalidAccessError for invalid times (Closed)

Created:
3 years, 10 months ago by Raymond Toy
Modified:
3 years, 6 months ago
Reviewers:
hongchan
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Throw RangeError instead of InvalidAccessError for invalid times Automation methods are supposed to throw a RangeError if the start time or time constant are invalid. Currently they throw InvalidAccessError. See spec issue: https://github.com/WebAudio/web-audio-api/issues/1182 BUG=685657, 726793 TEST=dom-exceptions.html, AudioParam/audioparam-exceptional-values.html, AudioParam/audioparam-method-channing.html Review-Url: https://codereview.chromium.org/2656993002 Cr-Commit-Position: refs/heads/master@{#477812} Committed: https://chromium.googlesource.com/chromium/src/+/36682d2fd06777d9dd371416fff959aefa36c14a

Patch Set 1 #

Patch Set 2 : Signal RangeError and rebase #

Patch Set 3 : Rebaseline test. #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase and remove bad test file #

Patch Set 6 : Check for exception types in tests #

Total comments: 6

Patch Set 7 : Address review comments and clang-format it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -115 lines) Patch
A + third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html View 1 2 3 4 5 6 1 chunk +203 lines, -92 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-method-chaining.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/dom-exceptions-expected.txt View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp View 1 2 3 4 5 3 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
Raymond Toy
PTAL
3 years, 10 months ago (2017-01-26 17:22:41 UTC) #2
haraken
V8TypeError is a JS error defined in Web IDL to handle exceptions that happen in ...
3 years, 10 months ago (2017-01-26 18:01:53 UTC) #3
Raymond Toy
On 2017/01/26 18:01:53, haraken wrote: > V8TypeError is a JS error defined in Web IDL ...
3 years, 10 months ago (2017-01-26 18:11:58 UTC) #4
hongchan
On 2017/01/26 18:11:58, Raymond Toy wrote: > On 2017/01/26 18:01:53, haraken wrote: > > V8TypeError ...
3 years, 10 months ago (2017-01-26 22:38:43 UTC) #5
hongchan
On 2017/01/26 22:38:43, hongchan wrote: > On 2017/01/26 18:11:58, Raymond Toy wrote: > > On ...
3 years, 9 months ago (2017-03-24 15:41:19 UTC) #6
Raymond Toy
On 2017/03/24 15:41:19, hongchan wrote: > On 2017/01/26 22:38:43, hongchan wrote: > > On 2017/01/26 ...
3 years, 6 months ago (2017-05-26 16:20:49 UTC) #8
hongchan
lgtm
3 years, 6 months ago (2017-05-26 20:48:13 UTC) #9
Raymond Toy
On 2017/05/26 16:20:49, Raymond Toy wrote: > On 2017/03/24 15:41:19, hongchan wrote: > > On ...
3 years, 6 months ago (2017-05-26 20:48:18 UTC) #10
Raymond Toy
PTAL. ThrowRangeError is used now and tests updated to check for the exception type.
3 years, 6 months ago (2017-05-30 17:56:37 UTC) #11
Raymond Toy
Ping
3 years, 6 months ago (2017-06-06 16:27:19 UTC) #13
hongchan
On 2017/06/06 16:27:19, Raymond Toy wrote: > Ping Sorry that I missed this one - ...
3 years, 6 months ago (2017-06-06 16:34:21 UTC) #14
hongchan
https://codereview.chromium.org/2656993002/diff/100001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html File third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html (right): https://codereview.chromium.org/2656993002/diff/100001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html#newcode53 third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html:53: funcArg: (value) => [value, 1, 1] Line 48-53 needs ...
3 years, 6 months ago (2017-06-06 16:34:29 UTC) #15
Raymond Toy
https://codereview.chromium.org/2656993002/diff/100001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html File third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html (right): https://codereview.chromium.org/2656993002/diff/100001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html#newcode53 third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html:53: funcArg: (value) => [value, 1, 1] On 2017/06/06 16:34:29, ...
3 years, 6 months ago (2017-06-06 17:55:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2656993002/120001
3 years, 6 months ago (2017-06-07 20:09:38 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/195246) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 6 months ago (2017-06-07 21:10:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2656993002/120001
3 years, 6 months ago (2017-06-07 22:44:41 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 23:55:36 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/36682d2fd06777d9dd371416fff9...

Powered by Google App Engine
This is Rietveld 408576698