Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / focus-contenteditable-iframe.html
blob0dd5e517481300fdf27c4f679d7e7eea71fa3784
1 <html>
2 <body>
3 <script src="../../resources/dump-as-markup.js"></script>
4 <script>
5 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.");
7 function handleLoad() {
8 var win = document.querySelector('iframe').contentWindow;
9 var body = win.document.body;
10 body.innerHTML = "asdf";
11 body.contentEditable = true;
12 win.getSelection().selectAllChildren(body);
13 body.focus();
14 Markup.dump(win.document);
16 </script>
17 <iframe onload="handleLoad()"></iframe>
19 </body>
20 </html>