[GTK] Count failed and timed out tests separately
https://bugs.webkit.org/show_bug.cgi?id=105448

Patch by Alberto Garcia <agarcia@igalia.com> on 2012-12-20
Reviewed by Carlos Garcia Campos.

Display the number of tests that fail, time out and are skipped
separately in the buildbot page.

* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(RunGtkAPITests.commandComplete):
(RunGtkAPITests.evaluateCommand):
(RunGtkAPITests.getText2):
* Scripts/run-gtk-tests:
(TestRunner.run_tests):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] WebAudio WKTR support
https://bugs.webkit.org/show_bug.cgi?id=95084

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Mac build fixes for adding WebAudio WKTR support.

No new tests, enables audio testing using WebKitTestRunner.

* WebCore.exp.in: toUint8Array symbol exported.
* WebCore.xcodeproj/project.pbxproj: JSUint8Array.h and JSArrayBufferView.h headers made available as private headers.

Source/WebKit2:

Implementing audio data dump support for WebKitTestRunner,
by adding the API to the IDL, enabling IPC for transferring
the audio data as bytebuffer and dumping it according
to run-webkit-tests script's expectations.

I am adding a testrunner specific bundle method to extract data
from a Uint8Array into a bytebuffer. This API is used by
WebKitTestRunner's TestRunner to extract the data into a local
variable, then sending it over IPC.

* DerivedSources.pri: Fixing Qt build by adding JSUint8Array.h header to list of forwarding headers.
* Target.pri: Adding missing WKData.* files. Qt build fix.
* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleCreateWKDataFromUint8Array): Added.
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Adding WKBundleCreateWKDataFromUint8Array.
* WebProcess/InjectedBundle/InjectedBundle.cpp: Convert Uint8Array to WebData.
(WebKit::InjectedBundle::createWebDataFromUint8Array):
(WebKit):
* WebProcess/InjectedBundle/InjectedBundle.h:
(WebKit):
(InjectedBundle):

Tools:

Implementing audio data dump support for WebKitTestRunner,
by adding the API to the IDL, enabling IPC for transferring
the audio data as bytebuffer and dumping it according
to run-webkit-tests script's expectations.
This enables audio testing on WebKit2 ports.
Based on initial wip-patch from Philippe Normand - thanks.

* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Adding setAudioData API.
* WebKitTestRunner/InjectedBundle/TestRunner.cpp: Assign audio buffer data to a local WKDataRef after extracting it from WK2 using WKBundleDataFromUint8Array bundle API.
(WTR::TestRunner::setAudioData):
(WTR):
* WebKitTestRunner/InjectedBundle/TestRunner.h: Add a whatToDump state for dumping Audio.
(TestRunner):
* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: Add audio to the message that's transferred to the WKTR process.
(WTR::InjectedBundle::done):
* WebKitTestRunner/InjectedBundle/InjectedBundle.h: Allow setting and audio result handle to be transferred.
(WTR::InjectedBundle::setAudioResult):
(InjectedBundle):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::dump): Dummy handling the Audio case in the switch, build fix for Mac.
* WebKitTestRunner/TestInvocation.cpp: Audio dump support, dump audio if we haven't received a text dump from the web process.
(WTR::TestInvocation::dumpResults):
(WTR):
(WTR::TestInvocation::dumpAudio):
(WTR::TestInvocation::didReceiveMessageFromInjectedBundle): Storing received audio data before dumping.
* WebKitTestRunner/TestInvocation.h:
(TestInvocation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138232 268f45cc-cd09-0410-ab3c-d52691b4dbfc