Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / copy-paste-first-line-in-textarea.html
blob30cb8c3b74ebcc7fcc4e65735fd64f7a91361ac4
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <textarea cols=50 rows=10>first
5 second</textarea>
6 <script src="../../resources/js-test.js"></script>
7 <p id="console"></p>
8 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var textarea = document.querySelector('textarea');
15 function selectFirstLineIncludingLineBreak() {
16 textarea.focus();
17 textarea.setSelectionRange(0, 0);
18 getSelection().modify('extend', 'forward', 'line');
21 function copyPaste() {
22 document.execCommand('copy');
23 document.execCommand('paste');
26 var offsetAfterLineBreak = 6;
27 shouldBe("selectFirstLineIncludingLineBreak(); copyPaste(); textarea.selectionEnd", "offsetAfterLineBreak");
29 </script>
30 </body>
31 </html>