Bug 65276 - Add audionode.html and gain.html web audio layout tests
Summary: Add audionode.html and gain.html web audio layout tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Rogers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 12:29 PDT by Chris Rogers
Modified: 2011-08-01 14:41 PDT (History)
3 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rogers 2011-07-27 12:29:54 PDT
Add audionode.html and gain.html web audio layout tests
Comment 1 Chris Rogers 2011-07-27 12:35:22 PDT
Created attachment 102170 [details]
Patch
Comment 2 Tony Chang 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.
Comment 3 Chris Rogers 2011-07-27 15:03:41 PDT
Created attachment 102190 [details]
Patch
Comment 4 Chris Rogers 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
Comment 5 Tony Chang 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?
Comment 6 Chris Rogers 2011-08-01 12:23:29 PDT
Created attachment 102542 [details]
Patch
Comment 7 Chris Rogers 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
Comment 8 Tony Chang 2011-08-01 12:28:46 PDT
LGTM, maybe kbr can do the r+ after reviewing the test contents.
Comment 9 Kenneth Russell 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.
Comment 10 Chris Rogers 2011-08-01 14:41:23 PDT
Committed r92144: <http://trac.webkit.org/changeset/92144>