We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Samples or possibly support for LayoutDirection tests.
I'm testing on https://github.com/google/horologist/pull/2258/files
I guess it's mainly
Plugin enables pseudolocales for tests
buildTypes { debug { isPseudoLocalesEnabled = true } }
Samples showing and confirming pseudolocales are kicking in
@Test @Config(qualifiers = "+ar-rXB-ldrtl") fun mirroredRtl() {
The text was updated successfully, but these errors were encountered:
1 possible bug in a) my tests, b) roborazzi, c) robolectric
The compose LocalLayoutDirection appears to reset back to Ltr for the screenshot. Not sure why.
@Composable public open fun ComponentScaffold(content: @Composable () -> Unit) { // TODO why needed val layoutDirection = when (LocalConfiguration.current.layoutDirection) { RTL -> LayoutDirection.Rtl else -> LayoutDirection.Ltr } CompositionLocalProvider(value = LocalLayoutDirection provides layoutDirection) { content() } }
I have this workaround, so am curious if you get the same error.
Sorry, something went wrong.
I wasn't able to reproduce the issue. Could you check the sample code I added? #400
Perfect, bug in my code then.
Successfully merging a pull request may close this issue.
Samples or possibly support for LayoutDirection tests.
I'm testing on https://github.com/google/horologist/pull/2258/files
I guess it's mainly
Plugin enables pseudolocales for tests
Samples showing and confirming pseudolocales are kicking in
The text was updated successfully, but these errors were encountered: