File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
aztec/src/test/kotlin/org/wordpress/aztec Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class HeadingTest() {
265265 @Test
266266 @Throws(Exception ::class )
267267 fun updateHeadingMenuOnSelectionChange () {
268- editText.fromHtml(" <h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><b>Bold</b><i>Italic</i>" )
268+ editText.fromHtml(" <h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><b>Bold</b><i>Italic</i>None " )
269269 var cursor: Int
270270
271271 cursor = editText.text.indexOf(" ing 1" )
@@ -287,6 +287,10 @@ class HeadingTest() {
287287 cursor = editText.text.indexOf(" ing 3" )
288288 editText.setSelection(cursor)
289289 Assert .assertEquals(TextFormat .FORMAT_HEADING_3 , toolbar.getSelectedHeadingMenuItem())
290+
291+ cursor = editText.text.indexOf(" one" )
292+ editText.setSelection(cursor)
293+ Assert .assertEquals(TextFormat .FORMAT_PARAGRAPH , toolbar.getSelectedHeadingMenuItem())
290294 }
291295
292296 /* *
You can’t perform that action at this time.
0 commit comments