Skip to content
  • ap@apple.com's avatar
    Enable webaudio/ tests on DRT/Mac · bafddf47
    ap@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=86914
    
    Reviewed by Darin Adler.
    
    Tools: 
    
    * DumpRenderTree/ForwardingHeaders/runtime/ArrayBufferView.h: Copied from Source/WebCore/ForwardingHeaders/runtime/ArrayBufferView.h.
    * DumpRenderTree/ForwardingHeaders/runtime/JSArrayBufferView.h: Copied from Source/WebCore/ForwardingHeaders/runtime/JSArrayBufferView.h.
    * DumpRenderTree/ForwardingHeaders/runtime/TypedArrayInlines.h: Copied from Source/WebCore/ForwardingHeaders/runtime/TypedArrayInlines.h.
    There is no way to efficiently get TypedArray buffer using API, so we need some internal headers.
    
    * DumpRenderTree/TestRunner.cpp:
    (setAudioResultCallback): 
    (TestRunner::staticFunctions):
    * DumpRenderTree/TestRunner.h:
    (TestRunner::audioResult):
    (TestRunner::setAudioResult):
    The function has a different name and argument type now, updated accordingly.
    Changed buffer from std::string to std::vector<char>, because it's more idiomatic.
    
    * DumpRenderTree/mac/DumpRenderTree.mm:
    (dumpAudio): Updated for the new name of audioResult accessor.
    (dump): Print the result in the format webkitpy currently expects.
    
    * WebKitTestRunner/TestInvocation.cpp:
    (WTR::TestInvocation::dumpAudio): fwrite the whole block at once, splitting into
    chunks made no sense.
    
    * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
    (WTR::TestRunner::setAudioResult): Added a FIXME about getting off WKBundle SPI.
    
    * DumpRenderTree/CMakeLists.txt: Added JavaScriptCore/parser to include search list,
    so that "SourceProvider.h" can be found.
    
    LayoutTests: 
    
    * TestExpectations: Moved webaudio/javascriptaudionode here, as garbage collection
    issues with it are cross-platform.
    
    * platform/mac-wk2/TestExpectations: Moved out everything, as there is nothing
    WK2 specific about WebAudio.
    
    * platform/mac/TestExpectations: WebAudio expectations here were just ignored. Replaced
    with slightly updated expectations from WK2.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bafddf47