Bug 206907

Summary: TestWebKitAPI: Conditionalize QuickLook tests on USE(QUICK_LOOK)
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, ap, commit-queue, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Jonathan Bedard 2020-01-28 14:33:50 PST
It doesn't make sense to attempt to run QuickLook tests when on a platform that isn't using QuickLook.
Comment 1 Radar WebKit Bug Importer 2020-01-28 14:34:15 PST
<rdar://problem/58969924>
Comment 2 Jonathan Bedard 2020-01-28 14:37:07 PST
Created attachment 389065 [details]
Patch
Comment 3 Alexey Proskuryakov 2020-01-28 14:46:55 PST
Comment on attachment 389065 [details]
Patch

rs=me, please double-check that this macro actually leaves the code enabled for iOS.
Comment 4 Jonathan Bedard 2020-01-28 15:11:03 PST
(In reply to Alexey Proskuryakov from comment #3)
> Comment on attachment 389065 [details]
> Patch
> 
> rs=me, please double-check that this macro actually leaves the code enabled
> for iOS.

For reference sake, USE(QUICK_LOOK) is currently defined like so:

#if PLATFORM(IOS)
#define USE_QUICK_LOOK 1
#endif
Comment 5 Jonathan Bedard 2020-01-28 15:23:20 PST
Created attachment 389076 [details]
Patch for landing
Comment 6 Alexey Proskuryakov 2020-01-28 15:36:03 PST
> For reference sake, USE(QUICK_LOOK) is currently defined like so:

What I asked to verify was whether the definition was included in this file.
Comment 7 WebKit Commit Bot 2020-01-28 16:06:32 PST
Comment on attachment 389076 [details]
Patch for landing

Clearing flags on attachment: 389076

Committed r255320: <https://trac.webkit.org/changeset/255320>
Comment 8 WebKit Commit Bot 2020-01-28 16:06:33 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Jonathan Bedard 2020-01-28 16:07:07 PST
(In reply to Alexey Proskuryakov from comment #3)
> Comment on attachment 389065 [details]
> Patch
> 
> rs=me, please double-check that this macro actually leaves the code enabled
> for iOS.

That would also be yes. config.h -> wtf/Platform.h -> wtf/PlatformUse.h