RESOLVED FIXED Bug 86914
Enable webaudio/ tests on DRT/Mac.
https://bugs.webkit.org/show_bug.cgi?id=86914
Summary Enable webaudio/ tests on DRT/Mac.
Jer Noble
Reported 2012-05-18 15:48:36 PDT
Enable webaudio/ tests on DRT/Mac.
Attachments
Patch (33.02 KB, patch)
2012-05-30 13:44 PDT, Jer Noble
no flags
Patch (36.54 KB, patch)
2012-05-30 13:58 PDT, Jer Noble
no flags
Patch (36.54 KB, patch)
2012-05-30 14:03 PDT, Jer Noble
no flags
Patch (36.51 KB, patch)
2012-05-30 15:01 PDT, Jer Noble
no flags
Patch (21.16 KB, patch)
2012-06-06 15:29 PDT, Jer Noble
no flags
Patch (25.35 KB, patch)
2012-06-06 15:46 PDT, Jer Noble
no flags
Patch (26.96 KB, patch)
2012-06-07 15:28 PDT, Jer Noble
simon.fraser: review-
patch to run by EWS (12.07 KB, patch)
2013-10-19 02:37 PDT, Alexey Proskuryakov
no flags
patch to run by EWS (4.72 MB, patch)
2013-10-19 02:41 PDT, Alexey Proskuryakov
no flags
patch to run by EWS (15.35 KB, patch)
2013-10-19 09:41 PDT, Alexey Proskuryakov
eflews.bot: commit-queue-
proposed patch (17.28 KB, patch)
2013-10-19 16:32 PDT, Alexey Proskuryakov
eflews.bot: commit-queue-
proposed patch (17.96 KB, patch)
2013-10-19 17:01 PDT, Alexey Proskuryakov
darin: review+
Jer Noble
Comment 1 2012-05-18 15:49:11 PDT
In order to support most of the WebAudio layout tests, DRT needs to implement setAudioData (as opposed to setEncodedAudioData).
Jer Noble
Comment 2 2012-05-30 13:44:04 PDT
WebKit Review Bot
Comment 3 2012-05-30 13:46:02 PDT
Attachment 144914 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h:61: Extra space before ( in function call [whitespace/parens] [4] Source/WebCore/bindings/objc/DOMPrivate.h:101: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 19 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gustavo Noronha (kov)
Comment 4 2012-05-30 13:51:42 PDT
Jer Noble
Comment 5 2012-05-30 13:58:11 PDT
Created attachment 144917 [details] Patch Add setAudioData() stub implementations to all the port-specific LayoutTestControllers.
WebKit Review Bot
Comment 6 2012-05-30 14:00:18 PDT
Attachment 144917 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebCore/bindings/objc/DOMPrivate.h:101: Extra space before ( in function call [whitespace/parens] [4] Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h:61: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 7 2012-05-30 14:03:49 PDT
Created attachment 144920 [details] Patch Fixed reverse #if logic in Source/WebCore/html/canvas/ArrayBufferView.idl
WebKit Review Bot
Comment 8 2012-05-30 14:06:11 PDT
Attachment 144920 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebCore/bindings/objc/DOMPrivate.h:101: Extra space before ( in function call [whitespace/parens] [4] Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h:61: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 9 2012-05-30 14:39:35 PDT
Gustavo Noronha (kov)
Comment 10 2012-05-30 14:40:59 PDT
Jer Noble
Comment 11 2012-05-30 15:01:39 PDT
Created attachment 144931 [details] Patch Made the new LayoutTestController::audioData() functions unconditional.
WebKit Review Bot
Comment 12 2012-05-30 15:04:26 PDT
Attachment 144931 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebCore/bindings/objc/DOMPrivate.h:101: Extra space before ( in function call [whitespace/parens] [4] Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h:61: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Philippe Normand
Comment 13 2012-05-30 16:31:09 PDT
See also bug 67187
Jer Noble
Comment 14 2012-06-06 15:29:24 PDT
Jer Noble
Comment 15 2012-06-06 15:30:57 PDT
This last patch has been much simplified. It should be very easy for other ports to implement setAudioData() by copying the implementation in LayoutTestControllerMac.mm and by adding a DumpRenderTree<Port>::jsToArrayBufferView() function in the WebCoreTestSupport.
Jer Noble
Comment 16 2012-06-06 15:46:47 PDT
Created attachment 146134 [details] Patch This time with the correct files included...
WebKit Review Bot
Comment 17 2012-06-06 15:52:19 PDT
Attachment 146134 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebKit/mac/WebCoreSupport/DumpRenderTreeSupportMac.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 20 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 18 2012-06-06 16:34:21 PDT
Jer Noble
Comment 19 2012-06-07 15:28:08 PDT
Created attachment 146400 [details] Patch Made the JSArrayBufferView.h header private, which fixes the compile error in WebKit.
WebKit Review Bot
Comment 20 2012-06-07 15:32:22 PDT
Attachment 146400 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebKit/mac/WebCoreSupport/DumpRenderTreeSupportMac.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Philippe Normand
Comment 21 2012-07-25 06:20:38 PDT
Comment on attachment 146400 [details] Patch This patch looks good to me but I'd prefer to let another reviewer more experienced with the Mac port to r+
Simon Fraser (smfr)
Comment 22 2012-09-19 13:39:45 PDT
Comment on attachment 146400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=146400&action=review >> Source/WebKit/mac/WebCoreSupport/DumpRenderTreeSupportMac.cpp:26 >> +#include "DumpRenderTreeSupportMac.h" > > Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] DumpRenderTreeSupport is a terrible name for this, a) because DumpRenderTree itself is a terrible name, and b) because presumably this would also be used from WebKitTestRunner. Why can't this be done via window.internals?
Jer Noble
Comment 23 2012-09-20 00:09:51 PDT
Comment on attachment 146400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=146400&action=review >>> Source/WebKit/mac/WebCoreSupport/DumpRenderTreeSupportMac.cpp:26 >>> +#include "DumpRenderTreeSupportMac.h" >> >> Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] > > DumpRenderTreeSupport is a terrible name for this, a) because DumpRenderTree itself is a terrible name, and b) because presumably this would also be used from WebKitTestRunner. > > Why can't this be done via window.internals? DumpRenderTreeSupport already exists in the tree; it is where all the other ports put this kind of thing. Moving this into window.internals would require rewriting all the tests, instead of just fixing the existing ones. Maybe we should do that, but not in this bug.
Philippe Normand
Comment 24 2012-12-30 10:40:09 PST
Jer, do you plan to update this patch soon?
Alexey Proskuryakov
Comment 25 2013-10-19 02:17:20 PDT
I have this working - it's quite a bit different now, with typed arrays having moved to JSC. But there are several failures when running in WK1 that I'd like to investigate.
Alexey Proskuryakov
Comment 26 2013-10-19 02:37:30 PDT
Created attachment 214646 [details] patch to run by EWS Oh, it's because we have misplaced expected results (someone put them to platform/mac-wk2 instead of platform/mac). The attached patch works, but it includes changes from bug 123057 to make sure things compile, and lacks ChangeLogs.
Alexey Proskuryakov
Comment 27 2013-10-19 02:41:06 PDT
Created attachment 214647 [details] patch to run by EWS Forgot LayoutTest changes.
Alexey Proskuryakov
Comment 28 2013-10-19 09:41:54 PDT
Created attachment 214655 [details] patch to run by EWS Unsure why it failed to apply. Anyway, I just moved the expected results in place in r157670 manually, so uploading a patch without any binaries.
EFL EWS Bot
Comment 29 2013-10-19 10:04:41 PDT
Comment on attachment 214655 [details] patch to run by EWS Attachment 214655 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/6658019
kov's GTK+ EWS bot
Comment 30 2013-10-19 10:30:17 PDT
Comment on attachment 214655 [details] patch to run by EWS Attachment 214655 [details] did not pass gtk-ews (gtk): Output: http://webkit-queues.appspot.com/results/5368067
Alexey Proskuryakov
Comment 31 2013-10-19 13:44:07 PDT
Comment on attachment 214655 [details] patch to run by EWS Mac EWS is stuck crashing because of bug 123066.
Alexey Proskuryakov
Comment 32 2013-10-19 16:32:42 PDT
Created attachment 214680 [details] proposed patch
EFL EWS Bot
Comment 33 2013-10-19 16:37:32 PDT
Build Bot
Comment 34 2013-10-19 16:38:18 PDT
Build Bot
Comment 35 2013-10-19 16:56:12 PDT
Comment on attachment 214680 [details] proposed patch Attachment 214680 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/6468030
Alexey Proskuryakov
Comment 36 2013-10-19 17:01:17 PDT
Created attachment 214682 [details] proposed patch With gtk/efl build fix (Mac should be fixed by r157687).
Darin Adler
Comment 37 2013-10-19 19:52:57 PDT
Comment on attachment 214682 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=214682&action=review > Tools/DumpRenderTree/TestRunner.cpp:341 > + JSC::JSArrayBufferView* jsBufferView = JSC::jsDynamicCast<JSC::JSArrayBufferView*>(toJS(toJS(context), arguments[0])); Maybe bufferViewWrapper would be a better name for this local variable? > Tools/DumpRenderTree/TestRunner.cpp:344 > + const char* buffer = (const char*)bufferView->baseAddress(); Why a C-style cast? Can we use static_cast or const_cast or reinterpret_cast?
Alexey Proskuryakov
Comment 38 2013-10-19 20:14:27 PDT
Committed <http://trac.webkit.org/r157691>. > Maybe bufferViewWrapper would be a better name for this local variable? Not sure, I like the one with prefix more, and I think that it's common style in bindings code. > Why a C-style cast? Can we use static_cast or const_cast or reinterpret_cast? Changed to static_cast.
Chris Dumez
Comment 39 2020-09-24 08:21:52 PDT
*** Bug 185471 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.