-
Notifications
You must be signed in to change notification settings - Fork 1
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
35 changed files
with
74 additions
and
9 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
core/src/test/java/com/orange/ouds/core/component/OudsComponentTest.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,26 @@ | ||
/* | ||
* Software Name: OUDS Android | ||
* SPDX-FileCopyrightText: Copyright (c) Orange SA | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This software is distributed under the MIT license, | ||
* the text of which is available at https://opensource.org/license/MIT/ | ||
* or see the "LICENSE" file for more details. | ||
* | ||
* Software description: Android library of reusable graphical components | ||
*/ | ||
|
||
package com.orange.ouds.core.component | ||
|
||
import app.cash.paparazzi.Paparazzi | ||
import com.android.ide.common.rendering.api.SessionParams | ||
import org.junit.Rule | ||
import org.junit.runner.RunWith | ||
import org.junit.runners.Parameterized | ||
|
||
@RunWith(Parameterized::class) | ||
internal abstract class OudsComponentTest { | ||
|
||
@get:Rule | ||
val paparazzi = Paparazzi(renderingMode = SessionParams.RenderingMode.SHRINK, maxPercentDifference = 0.01) | ||
} |
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
46 changes: 46 additions & 0 deletions
46
core/src/test/java/com/orange/ouds/core/component/link/OudsLinkTest.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,46 @@ | ||
/* | ||
* Software Name: OUDS Android | ||
* SPDX-FileCopyrightText: Copyright (c) Orange SA | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This software is distributed under the MIT license, | ||
* the text of which is available at https://opensource.org/license/MIT/ | ||
* or see the "LICENSE" file for more details. | ||
* | ||
* Software description: Android library of reusable graphical components | ||
*/ | ||
|
||
package com.orange.ouds.core.component.link | ||
|
||
import com.orange.ouds.core.component.OudsComponentTest | ||
import org.junit.Test | ||
import org.junit.runners.Parameterized | ||
|
||
internal class OudsLinkTest(private val parameter: OudsLinkPreviewParameter) : OudsComponentTest() { | ||
|
||
companion object { | ||
@JvmStatic | ||
@Parameterized.Parameters | ||
internal fun data() = OudsLinkPreviewParameterProvider().values.toList() | ||
} | ||
|
||
@Test | ||
fun takeOudsLinkLightThemeSnapshot() { | ||
paparazzi.snapshot { | ||
PreviewOudsLink( | ||
darkThemeEnabled = false, | ||
parameter = parameter | ||
) | ||
} | ||
} | ||
|
||
@Test | ||
fun takeOudsLinkDarkThemeSnapshot() { | ||
paparazzi.snapshot { | ||
PreviewOudsLink( | ||
darkThemeEnabled = true, | ||
parameter = parameter | ||
) | ||
} | ||
} | ||
} |
Binary file added
BIN
+9.1 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[0].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.4 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[10].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[11].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.2 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[12].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.44 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[13].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.52 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[14].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.6 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[15].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[1].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[2].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.5 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[3].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.54 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[4].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.36 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[5].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.35 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[6].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.7 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[7].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.87 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[8].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.3 KB
...ange.ouds.core.component.link_OudsLinkTest_takeOudsLinkDarkThemeSnapshot[9].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.32 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[0].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.6 KB
...ge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[10].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.8 KB
...ge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[11].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.21 KB
...ge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[12].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.46 KB
...ge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[13].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.54 KB
...ge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[14].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.6 KB
...ge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[15].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.3 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[1].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.4 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[2].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[3].png
Oops, something went wrong.
Binary file added
BIN
+7.55 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[4].png
Oops, something went wrong.
Binary file added
BIN
+8.37 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[5].png
Oops, something went wrong.
Binary file added
BIN
+8.36 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[6].png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[7].png
Oops, something went wrong.
Binary file added
BIN
+10.1 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[8].png
Oops, something went wrong.
Binary file added
BIN
+11.6 KB
...nge.ouds.core.component.link_OudsLinkTest_takeOudsLinkLightThemeSnapshot[9].png
Oops, something went wrong.