| <body onload="runTest()"> |
| testRunner.dumpEditingCallbacks(); |
| <p>This tests find and replace inside an editable iframe. You should see 'A B A B' below. With bug 4462420, you would see 'A B B A'.</p> |
| <iframe src="../resources/contenteditable-iframe-src.html"></iframe> |
| var sel = frame.getSelection(); |
| var doc = frame.document; |
| sel.setPosition(doc.body, 0); |
| doc.execCommand("InsertText", false, "A B A"); |
| sel.setPosition(doc.body, 0); |
| doc.execCommand("FindString", false, "A B"); |
| doc.execCommand("FindString", false, "A"); |
| doc.execCommand("Paste"); |