We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f648b commit bcd3791Copy full SHA for bcd3791
aztec/src/test/kotlin/org/wordpress/aztec/HeadingTest.kt
@@ -234,4 +234,17 @@ class HeadingTest() {
234
editText.text.delete(mark - 1, mark)
235
Assert.assertEquals("<h1 foo=\"bar\">Heading 1unstyled</h1>", editText.toHtml())
236
}
237
+
238
+ @Test
239
+ @Throws(Exception::class)
240
+ fun deleteHeadingChars_Issue287() {
241
+ editText.fromHtml("<h1>he</h1>")
242
243
+ var l = safeLength(editText)
244
+ editText.text.delete(l - 1, l)
245
246
+ l = safeLength(editText)
247
248
+ Assert.assertEquals("<h1></h1>", editText.toHtml())
249
+ }
250
0 commit comments