Bug 134671

Summary: WK2 Gamepad layout test support
Product: WebKit Reporter: Brady Eidson <beidson>
Component: Tools / TestsAssignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, ap, buildbot, commit-queue, dino, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=161056
Bug Depends on:    
Bug Blocks: 134076    
Attachments:
Description Flags
Patch v1 - For EWS, not ready for review
none
Patch v2 - Better feature guards
none
Patch
none
Patch
none
Archive of layout-test-results from ews104 for mac-yosemite-wk2
none
Patch
none
Patch
none
Archive of layout-test-results from ews107 for mac-yosemite-wk2
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Brady Eidson 2014-07-06 17:18:19 PDT
Gamepad LayoutTest support

While we won't be able to automatically test physical gamepad connects/disconnects, virtual ones are doable.

We need to write a dummy GamepadProvider with a javascript interface that lets us test the Gamepad DOM mechanism.
Comment 1 Brady Eidson 2014-09-08 16:06:16 PDT
Have a patch in progress on this I hope to get uploaded tomorrow.
Comment 2 Brady Eidson 2014-09-10 14:45:41 PDT
Created attachment 237906 [details]
Patch v1 - For EWS, not ready for review
Comment 3 Brady Eidson 2014-09-10 16:28:49 PDT
Created attachment 237915 [details]
Patch v2 - Better feature guards
Comment 4 Brady Eidson 2016-08-09 11:33:38 PDT
This approach is semi-outdated and will be revisited soon.
Comment 5 Brady Eidson 2016-08-22 13:49:23 PDT
Retitling:
WK2 Gamepad layout test support
Comment 6 Brady Eidson 2016-08-22 14:08:31 PDT
Created attachment 286618 [details]
Patch
Comment 7 Alex Christensen 2016-08-22 14:17:31 PDT
Comment on attachment 286618 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286618&action=review

> Source/WebCore/testing/MockGamepadProvider.h:67
> +    bool m_shouldScheduleActivityCallback;

{ true }
Comment 8 Brady Eidson 2016-08-22 15:10:53 PDT
Created attachment 286628 [details]
Patch
Comment 9 Build Bot 2016-08-22 16:02:39 PDT
Comment on attachment 286628 [details]
Patch

Attachment 286628 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1923316

New failing tests:
fast/dom/navigator-detached-no-crash.html
Comment 10 Build Bot 2016-08-22 16:02:43 PDT
Created attachment 286634 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 11 Brady Eidson 2016-08-22 16:25:03 PDT
Created attachment 286637 [details]
Patch
Comment 12 Brady Eidson 2016-08-22 16:49:33 PDT
Created attachment 286638 [details]
Patch
Comment 13 Build Bot 2016-08-22 17:43:10 PDT
Comment on attachment 286638 [details]
Patch

Attachment 286638 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1923975

New failing tests:
fast/dom/navigator-detached-no-crash.html
Comment 14 Build Bot 2016-08-22 17:43:13 PDT
Created attachment 286643 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 15 Alex Christensen 2016-08-22 23:07:56 PDT
Comment on attachment 286638 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286638&action=review

Looks pretty good. EWS still not happy. Will Check in the morning

> Source/WebKit2/Shared/Gamepad/GamepadData.cpp:36
> +GamepadData::GamepadData(unsigned index, const Vector<double>& axisValues, const Vector<double>& buttonValues)

Could we make this take a Vector&&?

> Tools/WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig:28
> +LD_RUNPATH_SEARCH_PATHS = "@loader_path";

What's this?

> Tools/WebKitTestRunner/TestInvocation.cpp:689
> +    

:(
Comment 16 Brady Eidson 2016-08-23 09:03:09 PDT
Created attachment 286716 [details]
Patch
Comment 17 Brady Eidson 2016-08-23 09:26:30 PDT
Created attachment 286719 [details]
Patch
Comment 18 Brady Eidson 2016-08-23 09:28:32 PDT
(In reply to comment #15)
> Comment on attachment 286638 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=286638&action=review
> 
> Looks pretty good. EWS still not happy. Will Check in the morning
> 
> > Source/WebKit2/Shared/Gamepad/GamepadData.cpp:36
> > +GamepadData::GamepadData(unsigned index, const Vector<double>& axisValues, const Vector<double>& buttonValues)
> 
> Could we make this take a Vector&&?

Would have no benefit.

> 
> > Tools/WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig:28
> > +LD_RUNPATH_SEARCH_PATHS = "@loader_path";
> 
> What's this?

xcode nonsense to get the UI Process linking with WebCoreTestSupport.


> > Tools/WebKitTestRunner/TestInvocation.cpp:689
> > +    
> 
> :(

:(
Comment 19 Brady Eidson 2016-08-23 09:29:22 PDT
Created attachment 286720 [details]
Patch
Comment 20 Brady Eidson 2016-08-23 09:36:38 PDT
Created attachment 286721 [details]
Patch
Comment 21 Brady Eidson 2016-08-23 09:49:40 PDT
Created attachment 286722 [details]
Patch
Comment 22 WebKit Commit Bot 2016-08-23 12:42:49 PDT
Comment on attachment 286722 [details]
Patch

Clearing flags on attachment: 286722

Committed r204853: <http://trac.webkit.org/changeset/204853>
Comment 23 WebKit Commit Bot 2016-08-23 12:42:55 PDT
All reviewed patches have been landed.  Closing bug.