Bug 206913

Summary: TestWebKitAPI: Conditionalize device orientation tests on ENABLE(DEVICE_ORIENTATION)
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, 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 15:56:05 PST
It doesn't make sense to attempt to run device orientation tests when on a platform that has DEVICE_ORIENTATION disabled.
Comment 1 Radar WebKit Bug Importer 2020-01-28 15:56:52 PST
<rdar://problem/58973357>
Comment 2 Jonathan Bedard 2020-01-28 15:58:27 PST
Created attachment 389082 [details]
Patch
Comment 3 Chris Dumez 2020-01-28 16:06:16 PST
Comment on attachment 389082 [details]
Patch

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

> Tools/TestWebKitAPI/Tests/WebKitCocoa/DeviceOrientation.mm:28
> +#if ENABLE(DEVICE_ORIENTATION) && PLATFORM(IOS_FAMILY)

Please update this comment at the end of the file as well:
#endif // PLATFORM(IOS_FAMILY)
Comment 4 Jonathan Bedard 2020-01-28 16:13:05 PST
Created attachment 389084 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2020-01-28 16:55:28 PST
Comment on attachment 389084 [details]
Patch for landing

Clearing flags on attachment: 389084

Committed r255328: <https://trac.webkit.org/changeset/255328>
Comment 6 WebKit Commit Bot 2020-01-28 16:55:30 PST
All reviewed patches have been landed.  Closing bug.