Bug 184524

Summary: [WinCairo][TestWebKitAPI] Implement PlatformWebView for TestWebKit
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: Tools / TestsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, lforschler, pvollan, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 174003    
Attachments:
Description Flags
Patch
none
Patch to land none

Description Fujii Hironori 2018-04-11 19:14:09 PDT
[WinCairo][TestWebKitAPI] Implement PlatformWebView for TestWebKit

It was removed in Bug 104607.
Comment 1 Fujii Hironori 2018-04-11 19:17:47 PDT
Created attachment 337769 [details]
Patch
Comment 2 Fujii Hironori 2018-04-13 21:17:06 PDT
Could anyone review?
Comment 3 Alex Christensen 2018-04-16 08:42:23 PDT
Comment on attachment 337769 [details]
Patch

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

> Tools/TestWebKitAPI/win/PlatformUtilitiesWin.cpp:38
> +    constexpr size_t bufferLength = _MAX_PATH * 4;

This seems excessive.

> Tools/TestWebKitAPI/win/PlatformUtilitiesWin.cpp:53
> +    String filename = String::format("..\\..\\..\\Tools\\TestWebKitAPI\\Tests\\WebKit\\%s.%s", resource, extension);

This seems specific to a certain build configuration.
Comment 4 Fujii Hironori 2018-04-16 21:16:48 PDT
Comment on attachment 337769 [details]
Patch

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

Thank you for the review.

>> Tools/TestWebKitAPI/win/PlatformUtilitiesWin.cpp:38
>> +    constexpr size_t bufferLength = _MAX_PATH * 4;
> 
> This seems excessive.

Agreed. I'll use _MAX_PATH+1.

>> Tools/TestWebKitAPI/win/PlatformUtilitiesWin.cpp:53
>> +    String filename = String::format("..\\..\\..\\Tools\\TestWebKitAPI\\Tests\\WebKit\\%s.%s", resource, extension);
> 
> This seems specific to a certain build configuration.

Mac port is copying the resource file into the build directory.
GTK and WPE ports are using a env var to specify the source directory.
Old WebKit port was using the same approach with Mac port.
I'm going to solve this problem in another bug.
Comment 5 Fujii Hironori 2018-04-16 21:23:05 PDT
Created attachment 338077 [details]
Patch to land
Comment 6 Fujii Hironori 2018-04-17 18:01:37 PDT
Committed r230744: <https://trac.webkit.org/changeset/230744>
Comment 7 Radar WebKit Bug Importer 2018-04-17 18:03:22 PDT
<rdar://problem/39512612>
Comment 8 Fujii Hironori 2018-04-17 18:08:52 PDT
(In reply to Fujii Hironori from comment #4)
> I'm going to solve this problem in another bug.

Filed Bug 184722.