24 lines
567 B
Plaintext
24 lines
567 B
Plaintext
Verifies that find and replace will insert the replacement text at the selection, if no matches are specified. This test requires WebKitTestRunner.
|
|
|
|
After replacing 'banana' with 'pear':
|
|
| "\n "
|
|
| <p>
|
|
| id="p1"
|
|
| "Apple <#selection-anchor>pear<#selection-focus> orange."
|
|
| "\n "
|
|
| <p>
|
|
| id="p2"
|
|
| "Kiwi banana pear."
|
|
| "\n "
|
|
|
|
After inserting 'watermelon' after 'Kiwi':
|
|
| "\n "
|
|
| <p>
|
|
| id="p1"
|
|
| "Apple pear orange."
|
|
| "\n "
|
|
| <p>
|
|
| id="p2"
|
|
| "Kiwi<#selection-anchor>watermelon<#selection-focus> banana pear."
|
|
| "\n "
|