blob: f8e9abff055da4ece4e3760a1a57efb844061add [file] [edit]
When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty <font> tag after 'foo' and before 'bar'.
After copy:
| "\n"
| <div>
| class="editing"
| id="test"
| <#selection-anchor>
| "\nfoo\n"
| <div>
| style="color: rgb(255, 0, 0);"
| "\n"
| <div>
| "bar"
| "\n"
| "\n"
| <#selection-focus>
| "\n"
After paste:
| "\n"
| <div>
| class="editing"
| id="test"
| "foo"
| <div>
| style="color: rgb(255, 0, 0);"
| "bar<#selection-caret>"
| <div>
| style="color: rgb(255, 0, 0);"
| "\n"
| "\n"
| "\n"