Bug 207211 - [PlayStation] Enable TestWebKit
Summary: [PlayStation] Enable TestWebKit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Don Olmstead
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-04 10:44 PST by Don Olmstead
Modified: 2020-02-04 15:34 PST (History)
8 users (show)

See Also:


Attachments
Patch (8.93 KB, patch)
2020-02-04 11:33 PST, Don Olmstead
no flags Details | Formatted Diff | Diff
Patch (9.13 KB, patch)
2020-02-04 14:42 PST, Don Olmstead
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2020-02-04 10:44:10 PST
Enable TestWebKit on PlayStation
Comment 1 Don Olmstead 2020-02-04 11:33:46 PST
Created attachment 389684 [details]
Patch
Comment 2 Ross Kirsling 2020-02-04 13:08:07 PST
Comment on attachment 389684 [details]
Patch

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

> Tools/TestWebKitAPI/playstation/PlatformUtilitiesPlayStation.cpp:54
> +    // FIXME

nit: probably best to leave off the FIXME if we're not gonna link a bug? Up to you for this case though.

> Tools/TestWebKitAPI/playstation/PlatformWebViewPlayStation.cpp:31
> +#include <WebKit/WKPageConfigurationRef.h>
> +#include <WebKit/WKRetainPtr.h>
> +#include <WebKit/WebKit2_C.h>

So long as these are stubs, we shouldn't need these includes or any of the param names below.

> Tools/TestWebKitAPI/playstation/PlatformWebViewPlayStation.cpp:33
> +namespace TestWebKitAPI {

Hmm, looking at the header, I'm surprised that we don't need to implement focus() or simulateAltKeyPress()...but if it works, it works.
Comment 3 Don Olmstead 2020-02-04 14:19:22 PST
Comment on attachment 389684 [details]
Patch

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

>> Tools/TestWebKitAPI/playstation/PlatformUtilitiesPlayStation.cpp:54
>> +    // FIXME
> 
> nit: probably best to leave off the FIXME if we're not gonna link a bug? Up to you for this case though.

Since there is a return value I think adding some sort of FIXME is prudent so it doesn't get overlooked as the implementation lands. There's precedence in other port implementations.

>> Tools/TestWebKitAPI/playstation/PlatformWebViewPlayStation.cpp:31
>> +#include <WebKit/WebKit2_C.h>
> 
> So long as these are stubs, we shouldn't need these includes or any of the param names below.

Removing

>> Tools/TestWebKitAPI/playstation/PlatformWebViewPlayStation.cpp:33
>> +namespace TestWebKitAPI {
> 
> Hmm, looking at the header, I'm surprised that we don't need to implement focus() or simulateAltKeyPress()...but if it works, it works.

Looks like mac doesnt implement simulateAltKeyPress and only mac implements focus. I'll just add them for consistency.
Comment 4 Don Olmstead 2020-02-04 14:42:12 PST
Created attachment 389711 [details]
Patch

Make Ross happy
Comment 5 WebKit Commit Bot 2020-02-04 15:33:31 PST
Comment on attachment 389711 [details]
Patch

Clearing flags on attachment: 389711

Committed r255708: <https://trac.webkit.org/changeset/255708>
Comment 6 WebKit Commit Bot 2020-02-04 15:33:33 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2020-02-04 15:34:13 PST
<rdar://problem/59168486>