3 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
4 <script src=
"../../resources/js-test.js"></script>
8 <div id=
"content" contenteditable
>
9 <ruby>今日
<rt>きょう
</rt></ruby>は
<ruby>良
<rt>よ
</rt></ruby>い
<ruby>天気
<rt>てんき
</rt></ruby>ですね。
10 <ruby><ruby>你
<rt>ni
</rt></ruby><ruby>在
<rt>zai
</rt></ruby><ruby>拉里
<rt>zali
</rt></ruby>?
12 <textarea cols=
50 rows=
5></textarea>
16 description("This tests copying and pasting text with ruby doesn't insert new lines before and after rt."
17 + "To manually test, copy and paste the text into the textarea. There should be not new line in the textarea.");
19 document
.getElementById('content').focus();
20 document
.execCommand('SelectAll', false, null);
21 if (document
.queryCommandSupported('Copy')) {
22 document
.execCommand('Copy', false, null);
24 var textarea
= document
.querySelector('textarea');
26 document
.execCommand('Paste', false, null);
27 shouldBe("textarea.value.indexOf('\\n')", "-1");
29 document
.getElementById('container').style
.display
= 'none';