@kevin, I will update the docs once we have a simpler API.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return GetOzonePlatformName() == "wayland";@oshima: I think this is a bit of an abstraction leak, but maybe ok for test if it's just a string?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
return GetOzonePlatformName() == "wayland";@oshima: I think this is a bit of an abstraction leak, but maybe ok for test if it's just a string?
If we don't need this runtime check in production code, then ok. That's being said, I'd be better to use PlatformProperties and enable/disable based on the feature underlying wayland supports. (e.g. supports_global_screen_coordinates).
If we keep this in the test, I'd prefer a name like "RunsOnWaylandForTes" rather than "IsWaylandForTest" to be more specific.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return GetOzonePlatformName() == "wayland";Mitsuru Oshima@oshima: I think this is a bit of an abstraction leak, but maybe ok for test if it's just a string?
If we don't need this runtime check in production code, then ok. That's being said, I'd be better to use PlatformProperties and enable/disable based on the feature underlying wayland supports. (e.g. supports_global_screen_coordinates).
If we keep this in the test, I'd prefer a name like "RunsOnWaylandForTes" rather than "IsWaylandForTest" to be more specific.
I think I'd prefer to stick with this. I'm pretty sure most of the users are going to be build gardeners who probably won't have time to figure out which features implies wayland. Renamed (but changed it to RunningOnWaylandForTest), thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM, thanks.
Introduce a static function to determine is ozone is wayland in testif
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |