Bug 88624 - WebAudio tests need to set WebKitWebAudioEnabled.
Summary: WebAudio tests need to set WebKitWebAudioEnabled.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 22:49 PDT by Dongwoo Joshua Im (dwim)
Modified: 2012-06-11 15:05 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.51 KB, patch)
2012-06-08 00:45 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
Patch (1.14 KB, patch)
2012-06-10 17:00 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
Patch (1.78 KB, patch)
2012-06-10 17:14 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
Patch (9.22 KB, patch)
2012-06-10 21:37 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dongwoo Joshua Im (dwim) 2012-06-07 22:49:44 PDT
I will add one line of code below into the test cases of the WebAudio layouttest.
"layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");"

Some tests have now, the others don't.
Comment 1 Dongwoo Joshua Im (dwim) 2012-06-08 00:45:52 PDT
Created attachment 146499 [details]
Patch

Three tests don't have that.
Comment 2 Philippe Normand 2012-06-08 09:57:01 PDT
Comment on attachment 146499 [details]
Patch

Can you instead put this call in javascriptaudionode-testing.js? It seems those 3 tests include that file. The change would be similar to the one previously did for the tests using audio-testing.js
Comment 3 Dongwoo Joshua Im (dwim) 2012-06-08 18:46:54 PDT
(In reply to comment #2)
> (From update of attachment 146499 [details])
> Can you instead put this call in javascriptaudionode-testing.js? It seems those 3 tests include that file. The change would be similar to the one previously did for the tests using audio-testing.js

Yes, they do include that file.
I will do it. ;)
Comment 4 Dongwoo Joshua Im (dwim) 2012-06-10 17:00:31 PDT
Created attachment 146757 [details]
Patch

I've fixed the patch regarding Philippe's comment.
Comment 5 Dongwoo Joshua Im (dwim) 2012-06-10 17:11:29 PDT
(In reply to comment #2)
> (From update of attachment 146499 [details])
> Can you instead put this call in javascriptaudionode-testing.js? It seems those 3 tests include that file. The change would be similar to the one previously did for the tests using audio-testing.js

Oh.. audiochannelmerger-basic.html is not include 'javascriptaudionode-testing.js' file.

I will directly set the flag in the audiochannelmerger-basic.html.
Comment 6 Dongwoo Joshua Im (dwim) 2012-06-10 17:14:20 PDT
Created attachment 146759 [details]
Patch
Comment 7 Chris Rogers 2012-06-10 20:08:35 PDT
Can't we just make sure that these tests "include" audio-testing.js?

It seems unfortunate to have to add the overridePreference stuff into individual test files....
Comment 8 Dongwoo Joshua Im (dwim) 2012-06-10 20:11:34 PDT
(In reply to comment #7)
> Can't we just make sure that these tests "include" audio-testing.js?
> 
> It seems unfortunate to have to add the overridePreference stuff into individual test files....

Do you want all of the webaudio test cases include the 'audio-testing.js' file?
I think it could be a good solution.
Comment 9 Chris Rogers 2012-06-10 21:21:26 PDT
(In reply to comment #8)
> (In reply to comment #7)
> > Can't we just make sure that these tests "include" audio-testing.js?
> > 
> > It seems unfortunate to have to add the overridePreference stuff into individual test files....
> 
> Do you want all of the webaudio test cases include the 'audio-testing.js' file?
> I think it could be a good solution.

Seems better than having to add overridePreference to them all.
Comment 10 Dongwoo Joshua Im (dwim) 2012-06-10 21:37:12 PDT
Created attachment 146778 [details]
Patch

Dear Chris, 
Is this what you want? :)
Comment 11 WebKit Review Bot 2012-06-11 15:05:53 PDT
Comment on attachment 146778 [details]
Patch

Clearing flags on attachment: 146778

Committed r120011: <http://trac.webkit.org/changeset/120011>
Comment 12 WebKit Review Bot 2012-06-11 15:05:58 PDT
All reviewed patches have been landed.  Closing bug.