blob: a32fb8f9f2708153308b355041ceec3532a04d0b [file] [log] [blame]
kociendae7ccb7c2004-06-14 17:59:46 +00001<html>
2<head>
3
4<style>
5.editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9}
10</style>
11<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
12
13<script>
14
15function editingTest() {
16 for (i = 0; i < 3; i++) {
17 typeCharacterCommand();
18 }
19 selectAllCommand();
20 boldCommand();
21 moveSelectionForwardByCharacterCommand();
22 for (i = 0; i < 3; i++) {
23 typeCharacterCommand();
24 }
kocienda4b4f21f2004-12-03 17:31:30 +000025 insertLineBreakCommand();
kociendae7ccb7c2004-06-14 17:59:46 +000026 for (i = 0; i < 3; i++) {
27 typeCharacterCommand();
28 }
29}
30
31</script>
32
33<title>Editing Test</title>
34</head>
35<body>
rniwa@webkit.orged35cb52010-09-11 05:08:40 +000036<p>Test that inserting a line break will preserve bolding. All of the text below should be bold.</p>
kociendae7ccb7c2004-06-14 17:59:46 +000037<div contenteditable id="root" class="editing">
38<span id="test">test</span>
39</div>
40
41<script>
rniwa@webkit.orged35cb52010-09-11 05:08:40 +000042runDumpAsTextEditingTest();
kociendae7ccb7c2004-06-14 17:59:46 +000043</script>
44
45</body>
46</html>