| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../../resources/js-test.js"></script> | |
| 3 <iframe id="iframe" seamless srcdoc="FAIL"></iframe> | |
| 4 <script> | |
| 5 debug("Test that being a seamless iframe does not break designMode.") | |
| 6 window.onload = function () { | |
| 7 window.iframe = document.getElementById("iframe"); | |
| 8 window.iframe.contentDocument.designMode = "on"; | |
| 9 var target = window.iframe.contentDocument.body; | |
| 10 target.focus(); | |
| 11 window.iframe.contentDocument.getSelection().selectAllChildren(target); | |
| 12 if (window.eventSender) { | |
| 13 eventSender.keyDown("P"); | |
| 14 eventSender.keyDown("A"); | |
| 15 eventSender.keyDown("S"); | |
| 16 eventSender.keyDown("S"); | |
| 17 } | |
| 18 shouldBeEqualToString("window.iframe.contentDocument.body.textContent", "PAS
S"); | |
| 19 } | |
| 20 </script> | |
| OLD | NEW |