Skip to content

Commit f3da0bb

Browse files
committed
Update default strikethrough tag in tests
1 parent 9bdc077 commit f3da0bb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/FormattingHistoryTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class FormattingHistoryTests : BaseHistoryTest() {
232232
fun testMakeStrikethroughUndoRedo() {
233233
val snippet1 = "There's no crying in"
234234
val snippet2 = " baseball!"
235-
val html = "$snippet1<del>$snippet2</del>"
235+
val html = "$snippet1<s>$snippet2</s>"
236236
val editorPage = EditorPage()
237237

238238
// Insert first snippet

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/SimpleTextFormattingTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SimpleTextFormattingTests : BaseTest() {
4646
fun testSimpleStrikethroughFormatting() {
4747
val text1 = "some"
4848
val text2 = "text"
49-
val html = "$text1<del>$text2</del>"
49+
val html = "$text1<s>$text2</s>"
5050

5151
EditorPage()
5252
.insertText(text1)
@@ -351,7 +351,7 @@ class SimpleTextFormattingTests : BaseTest() {
351351
fun testInlineStyleAndSpace() {
352352
val text1 = "some"
353353
val text2 = "text "
354-
val html = "$text1<del>$text2</del>"
354+
val html = "$text1<s>$text2</s>"
355355

356356
EditorPage()
357357
.insertText(text1)

aztec/src/test/kotlin/org/wordpress/aztec/LinkTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ class LinkTest {
4747
@Test
4848
@Throws(Exception::class)
4949
fun insertLinkIntoStyledText() {
50-
editText.fromHtml("<del><b>left</b><i>right</i></del>")
50+
editText.fromHtml("<s><b>left</b><i>right</i></s>")
5151
editText.setSelection(4)
5252
editText.link("http://wordpress.com", "WordPress")
5353
// Still valid, but order of b and del is switched here for some reason.
54-
Assert.assertEquals("<b><del>left</del></b><b><del><a href=\"http://wordpress.com\">WordPress</a></del></b><del><i>right</i></del>", editText.toHtml())
54+
Assert.assertEquals("<b><s>left</s></b><b><s><a href=\"http://wordpress.com\">WordPress</a></s></b><s><i>right</i></s>", editText.toHtml())
5555
}
5656

5757
@Test

0 commit comments

Comments
 (0)