-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
253 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...acked_multipreview_five_total_previews_produces_five_snapshots/input/FontScaleVariants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import androidx.compose.ui.tooling.preview.Preview | ||
|
||
@Preview( | ||
name = "Normal font", | ||
group = "Font scale", | ||
fontScale = 1f, | ||
) | ||
@Preview( | ||
name = "Large font", | ||
group = "Font scale", | ||
fontScale = 1.5f, | ||
) | ||
@Preview( | ||
name = "Small font", | ||
group = "Font scale", | ||
fontScale = .5f, | ||
) | ||
annotation class FontScaleVariants |
5 changes: 5 additions & 0 deletions
5
...stacked_multipreview_five_total_previews_produces_five_snapshots/input/PreviewVariants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
@FontScaleVariants | ||
@UIModeVariants | ||
annotation class PreviewVariants |
8 changes: 8 additions & 0 deletions
8
...review_five_total_previews_produces_five_snapshots/input/StackedMultiPreviewComposable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@PreviewVariants | ||
@Composable | ||
fun StackedMultiPreviewComposable() { | ||
} |
16 changes: 16 additions & 0 deletions
16
.../stacked_multipreview_five_total_previews_produces_five_snapshots/input/UIModeVariants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import android.content.res.Configuration | ||
import androidx.compose.ui.tooling.preview.Preview | ||
|
||
@Preview( | ||
name = "Light", | ||
group = "UIMode", | ||
uiMode = Configuration.UI_MODE_NIGHT_NO, | ||
) | ||
@Preview( | ||
name = "Dark", | ||
group = "UIMode", | ||
uiMode = Configuration.UI_MODE_NIGHT_YES, | ||
) | ||
annotation class UIModeVariants |
39 changes: 39 additions & 0 deletions
39
...s_produces_five_snapshots/output/StackedMultiPreviewComposable_-2110175474_GenSnapshot.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.test.junit4.ComposeContentTestRule | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import com.emergetools.snapshots.EmergeSnapshots | ||
import com.emergetools.snapshots.compose.SnapshotVariantProvider | ||
import com.emergetools.snapshots.shared.ComposePreviewSnapshotConfig | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
public class `StackedMultiPreviewComposable_-2110175474_GenSnapshot` { | ||
@get:Rule | ||
public val composeRule: ComposeContentTestRule = createComposeRule() | ||
|
||
public val previewConfig: ComposePreviewSnapshotConfig = ComposePreviewSnapshotConfig(originalFqn | ||
= | ||
"PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable", | ||
name = "Large font", | ||
group = "Font scale", | ||
fontScale = 1.5f) | ||
|
||
@get:Rule | ||
public val snapshotRule: EmergeSnapshots = EmergeSnapshots() | ||
|
||
@Test | ||
public fun StackedMultiPreviewComposable_GenSnapshot() { | ||
composeRule.setContent { | ||
SnapshotVariantProvider(previewConfig) { | ||
StackedMultiPreviewComposable() | ||
} | ||
} | ||
snapshotRule.take(composeRule, previewConfig) | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ws_produces_five_snapshots/output/StackedMultiPreviewComposable_-262425918_GenSnapshot.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.test.junit4.ComposeContentTestRule | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import com.emergetools.snapshots.EmergeSnapshots | ||
import com.emergetools.snapshots.compose.SnapshotVariantProvider | ||
import com.emergetools.snapshots.shared.ComposePreviewSnapshotConfig | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
public class `StackedMultiPreviewComposable_-262425918_GenSnapshot` { | ||
@get:Rule | ||
public val composeRule: ComposeContentTestRule = createComposeRule() | ||
|
||
public val previewConfig: ComposePreviewSnapshotConfig = ComposePreviewSnapshotConfig(originalFqn | ||
= | ||
"PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable", | ||
name = "Small font", | ||
group = "Font scale", | ||
fontScale = 0.5f) | ||
|
||
@get:Rule | ||
public val snapshotRule: EmergeSnapshots = EmergeSnapshots() | ||
|
||
@Test | ||
public fun StackedMultiPreviewComposable_GenSnapshot() { | ||
composeRule.setContent { | ||
SnapshotVariantProvider(previewConfig) { | ||
StackedMultiPreviewComposable() | ||
} | ||
} | ||
snapshotRule.take(composeRule, previewConfig) | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ws_produces_five_snapshots/output/StackedMultiPreviewComposable_-441987374_GenSnapshot.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.test.junit4.ComposeContentTestRule | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import com.emergetools.snapshots.EmergeSnapshots | ||
import com.emergetools.snapshots.compose.SnapshotVariantProvider | ||
import com.emergetools.snapshots.shared.ComposePreviewSnapshotConfig | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
public class `StackedMultiPreviewComposable_-441987374_GenSnapshot` { | ||
@get:Rule | ||
public val composeRule: ComposeContentTestRule = createComposeRule() | ||
|
||
public val previewConfig: ComposePreviewSnapshotConfig = ComposePreviewSnapshotConfig(originalFqn | ||
= | ||
"PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable", | ||
name = "Dark", | ||
group = "UIMode", | ||
uiMode = 32) | ||
|
||
@get:Rule | ||
public val snapshotRule: EmergeSnapshots = EmergeSnapshots() | ||
|
||
@Test | ||
public fun StackedMultiPreviewComposable_GenSnapshot() { | ||
composeRule.setContent { | ||
SnapshotVariantProvider(previewConfig) { | ||
StackedMultiPreviewComposable() | ||
} | ||
} | ||
snapshotRule.take(composeRule, previewConfig) | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ews_produces_five_snapshots/output/StackedMultiPreviewComposable_441959458_GenSnapshot.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.test.junit4.ComposeContentTestRule | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import com.emergetools.snapshots.EmergeSnapshots | ||
import com.emergetools.snapshots.compose.SnapshotVariantProvider | ||
import com.emergetools.snapshots.shared.ComposePreviewSnapshotConfig | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
public class StackedMultiPreviewComposable_441959458_GenSnapshot { | ||
@get:Rule | ||
public val composeRule: ComposeContentTestRule = createComposeRule() | ||
|
||
public val previewConfig: ComposePreviewSnapshotConfig = ComposePreviewSnapshotConfig(originalFqn | ||
= | ||
"PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable", | ||
name = "Light", | ||
group = "UIMode", | ||
uiMode = 16) | ||
|
||
@get:Rule | ||
public val snapshotRule: EmergeSnapshots = EmergeSnapshots() | ||
|
||
@Test | ||
public fun StackedMultiPreviewComposable_GenSnapshot() { | ||
composeRule.setContent { | ||
SnapshotVariantProvider(previewConfig) { | ||
StackedMultiPreviewComposable() | ||
} | ||
} | ||
snapshotRule.take(composeRule, previewConfig) | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...otal_previews_produces_five_snapshots/output/StackedMultiPreviewComposable_GenSnapshot.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input | ||
|
||
import PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.test.junit4.ComposeContentTestRule | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import com.emergetools.snapshots.EmergeSnapshots | ||
import com.emergetools.snapshots.compose.SnapshotVariantProvider | ||
import com.emergetools.snapshots.shared.ComposePreviewSnapshotConfig | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
public class StackedMultiPreviewComposable_GenSnapshot { | ||
@get:Rule | ||
public val composeRule: ComposeContentTestRule = createComposeRule() | ||
|
||
public val previewConfig: ComposePreviewSnapshotConfig = ComposePreviewSnapshotConfig(originalFqn | ||
= | ||
"PreviewProcessorTest.stacked_multipreview_five_total_previews_produces_five_snapshots.input.StackedMultiPreviewComposable", | ||
name = "Normal font", | ||
group = "Font scale") | ||
|
||
@get:Rule | ||
public val snapshotRule: EmergeSnapshots = EmergeSnapshots() | ||
|
||
@Test | ||
public fun StackedMultiPreviewComposable_GenSnapshot() { | ||
composeRule.setContent { | ||
SnapshotVariantProvider(previewConfig) { | ||
StackedMultiPreviewComposable() | ||
} | ||
} | ||
snapshotRule.take(composeRule, previewConfig) | ||
} | ||
} |