1.md 604 B

Selection attributes conversion test #462

Test 1

  1. Put caret inside unstyled word.
  2. 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

  1. Put caret inside bold word.
  2. 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>.