WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
65276
Add audionode.html and gain.html web audio layout tests
https://bugs.webkit.org/show_bug.cgi?id=65276
Summary
Add audionode.html and gain.html web audio layout tests
Chris Rogers
Reported
2011-07-27 12:29:54 PDT
Add audionode.html and gain.html web audio layout tests
Attachments
Patch
(378.13 KB, patch)
2011-07-27 12:35 PDT
,
Chris Rogers
no flags
Details
Formatted Diff
Diff
Patch
(379.85 KB, patch)
2011-07-27 15:03 PDT
,
Chris Rogers
no flags
Details
Formatted Diff
Diff
Patch
(379.77 KB, patch)
2011-08-01 12:23 PDT
,
Chris Rogers
kbr
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Rogers
Comment 1
2011-07-27 12:35:22 PDT
Created
attachment 102170
[details]
Patch
Tony Chang
Comment 2
2011-07-27 13:42:11 PDT
Comment on
attachment 102170
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102170&action=review
r- for the missing file.
> LayoutTests/webaudio/audionode.html:5 > +<!-- > +Performs basic tests on the AudioNode API. > +-->
Nit: I would remove this since it's in the description() below.
> LayoutTests/webaudio/gain.html:12 > +<script type="text/javascript" src="resources/buffer-loader.js"></script>
Did you mean to include this file in the change?
> LayoutTests/webaudio/gain.html:22 > +var bufferDuration = 0.125;
Nit: I like to include the units in my variable names, e.g., bufferDurationSeconds.
> LayoutTests/webaudio/gain.html:63 > + context = new webkitAudioContext(2, sampleRate * lengthInSeconds, sampleRate);
Can you get someone familiar with the audio API to review this code? I'm happy to forward on their LGTM, but I don't really know the API.
Chris Rogers
Comment 3
2011-07-27 15:03:41 PDT
Created
attachment 102190
[details]
Patch
Chris Rogers
Comment 4
2011-07-27 15:04:45 PDT
Comment on
attachment 102170
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102170&action=review
>> LayoutTests/webaudio/audionode.html:5 >> +--> > > Nit: I would remove this since it's in the description() below.
FIXED
>> LayoutTests/webaudio/gain.html:12 >> +<script type="text/javascript" src="resources/buffer-loader.js"></script> > > Did you mean to include this file in the change?
Added buffer-loader.js
>> LayoutTests/webaudio/gain.html:22 >> +var bufferDuration = 0.125; > > Nit: I like to include the units in my variable names, e.g., bufferDurationSeconds.
FIXED
>> LayoutTests/webaudio/gain.html:63 >> + context = new webkitAudioContext(2, sampleRate * lengthInSeconds, sampleRate); > > Can you get someone familiar with the audio API to review this code? I'm happy to forward on their LGTM, but I don't really know the API.
Sure, no problem, adding kbr
Tony Chang
Comment 5
2011-07-28 10:27:15 PDT
Comment on
attachment 102190
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102190&action=review
> LayoutTests/webaudio/gain.html:12 > +<script type="text/javascript" src="resources/buffer-loader.js"></script>
It doesn't look like this test uses BufferLoader. Can we remove it from this change?
Chris Rogers
Comment 6
2011-08-01 12:23:29 PDT
Created
attachment 102542
[details]
Patch
Chris Rogers
Comment 7
2011-08-01 12:24:08 PDT
Comment on
attachment 102190
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102190&action=review
>> LayoutTests/webaudio/gain.html:12 >> +<script type="text/javascript" src="resources/buffer-loader.js"></script> > > It doesn't look like this test uses BufferLoader. Can we remove it from this change?
FIXED
Tony Chang
Comment 8
2011-08-01 12:28:46 PDT
LGTM, maybe kbr can do the r+ after reviewing the test contents.
Kenneth Russell
Comment 9
2011-08-01 14:13:07 PDT
Comment on
attachment 102542
[details]
Patch Looks good, in particular after our offline conversation indicating that these tests are already disabled for platforms not supporting the Web Audio API yet.
Chris Rogers
Comment 10
2011-08-01 14:41:23 PDT
Committed
r92144
: <
http://trac.webkit.org/changeset/92144
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug