1 <body onload="runTest()">
3 if (window.layoutTestController)
4 layoutTestController.dumpEditingCallbacks();
6 <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>
7 <iframe src="../resources/contenteditable-iframe-src.html"></iframe>
11 document.body.offsetTop;
13 var frame = frames[0];
14 var sel = frame.getSelection();
15 var doc = frame.document;
17 sel.setPosition(doc.body, 0);
18 doc.execCommand("InsertText", false, "A B A");
19 sel.setPosition(doc.body, 0);
20 doc.execCommand("FindString", false, "A B");
21 doc.execCommand("Copy");
22 doc.execCommand("FindString", false, "A");
23 doc.execCommand("Paste");