haikuwebkit/LayoutTests/editing/selection/focus-contenteditable-ifram...

21 lines
666 B
HTML
Raw Permalink Normal View History

<html>
<body>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description("This tests focusing the body element in a contentEditable iframe. The whole body contents should be selected. Focus should only place the cursor at the beginning of the body if there isn't an existing selection.");
function handleLoad() {
var win = document.querySelector('iframe').contentWindow;
var body = win.document.body;
body.innerHTML = "asdf";
body.contentEditable = true;
win.getSelection().selectAllChildren(body);
body.focus();
Markup.dump(win.document);
};
</script>
<iframe onload="handleLoad()"></iframe>
</body>
Editing tests should use testRunner instead of layoutTestController https://bugs.webkit.org/show_bug.cgi?id=88955 Reviewed by Darin Adler. * editing/: * platform/blackberry/editing/text-iterator/findString-markers.html: * platform/chromium-linux/editing/selection/linux_selection_color.html: * platform/chromium-win/editing/selection/paragraph-granularity-expected.txt: * platform/chromium-win/editing/selection/triple-click-in-pre-expected.txt: * platform/chromium-win/editing/selection/word-granularity-expected.txt: * platform/chromium/editing/spelling/delete-misspelled-word.html: * platform/chromium/editing/spelling/move-cursor-to-misspelled-word.html: * platform/gtk/editing/pasteboard/middle-button-paste.html: * platform/gtk/editing/pasteboard/script-tests/middle-click-onpaste.js: * platform/gtk/editing/selection/caret-mode-document-begin-end.html: * platform/gtk/editing/selection/paragraph-granularity-expected.txt: * platform/gtk/editing/selection/triple-click-in-pre-expected.txt: * platform/gtk/editing/selection/word-granularity-expected.txt: * platform/mac/editing/: * platform/qt/editing/selection/paragraph-granularity-expected.txt: * platform/qt/editing/selection/triple-click-in-pre-expected.txt: * platform/qt/editing/selection/word-granularity-expected.txt: * platform/win/editing/deleting/delete-start-block-expected.txt: * platform/win/editing/pasteboard/pasting-crlf-isnt-translated-to-crcrlf-win.html: * platform/win/editing/selection/shift-page-up-down.html: Canonical link: https://commits.webkit.org/106795@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-13 08:51:53 +00:00
</html>