-
Notifications
You must be signed in to change notification settings - Fork 661
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
1 parent
e749686
commit 2f95cc0
Showing
11 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
stripe-ui-core/src/test/java/com/stripe/android/uicore/text/HtmlScreenshotTest.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,61 @@ | ||
package com.stripe.android.uicore.text | ||
|
||
import com.stripe.android.uicore.StripeTheme | ||
import com.stripe.android.uicore.utils.PaparazziRule | ||
import com.stripe.android.uicore.utils.SystemAppearance | ||
import org.junit.Ignore | ||
import org.junit.Rule | ||
import org.junit.Test | ||
|
||
class HtmlScreenshotTest { | ||
@get:Rule | ||
val paparazziRule = PaparazziRule( | ||
SystemAppearance.values() | ||
) | ||
|
||
@Test | ||
@Ignore("Until fixed by https://issuetracker.google.com/issues/262773698") | ||
fun testBold() { | ||
paparazziRule.snapshot { | ||
StripeTheme { | ||
Html(html = "this is some <b>bold</b> text") | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun testItalic() { | ||
paparazziRule.snapshot { | ||
StripeTheme { | ||
Html(html = "this is some <i>italic</i> text") | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun testUnderline() { | ||
paparazziRule.snapshot { | ||
StripeTheme { | ||
Html(html = "this is some <u>underline</u> text") | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun testAnchor() { | ||
paparazziRule.snapshot { | ||
StripeTheme { | ||
Html(html = "this is some <a href='stripe.com'>link</a> text") | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun testListItem() { | ||
paparazziRule.snapshot { | ||
StripeTheme { | ||
Html(html = "these are some list items: <li>item1</li><li>item2</li><li>item3</li>") | ||
} | ||
} | ||
} | ||
} |
Binary file added
BIN
+5.01 KB
...ges/com.stripe.android.uicore.text_HtmlScreenshotTest_testAnchor[DarkTheme].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.04 KB
...es/com.stripe.android.uicore.text_HtmlScreenshotTest_testAnchor[LightTheme].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
+5.7 KB
...com.stripe.android.uicore.text_HtmlScreenshotTest_testHtmlItalic[DarkTheme].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.17 KB
...om.stripe.android.uicore.text_HtmlScreenshotTest_testHtmlItalic[LightTheme].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
+5.76 KB
...ges/com.stripe.android.uicore.text_HtmlScreenshotTest_testItalic[DarkTheme].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.28 KB
...es/com.stripe.android.uicore.text_HtmlScreenshotTest_testItalic[LightTheme].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.8 KB
...s/com.stripe.android.uicore.text_HtmlScreenshotTest_testListItem[DarkTheme].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
.../com.stripe.android.uicore.text_HtmlScreenshotTest_testListItem[LightTheme].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
+5.92 KB
.../com.stripe.android.uicore.text_HtmlScreenshotTest_testUnderline[DarkTheme].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.52 KB
...com.stripe.android.uicore.text_HtmlScreenshotTest_testUnderline[LightTheme].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.