Selection attributes conversion test #462
Test 1
- Put caret inside unstyled word.
- Press Ctrl+I.
Expected results:
<em>@@@@@@@</em> was inserted into editable.
- selection has the
'italic' attribute.
- selection anchor's parent node is
<em>.
Test 2
- Put caret inside bold word.
- Press Ctrl+B.
Expected results:
<em> element from previous test got removed.
<strong> element got broken.
- selection doesn't have the
'bold' attribute.
- selection anchor's parent node is
<p>.