summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/deleting/delete-line-012.html
blob: 2084fa7c8644d613fe9aab3cfde0ca10353c3f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html> 
<head>

<style>
.editing { 
    font-size: 24px; 
    width: 600px; 
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>

<script>

function editingTest() {
    for (i = 0; i < 10; i++)
        moveSelectionForwardByCharacterCommand(); 
    extendSelectionForwardByLineCommand();    
    for (i = 0; i < 11; i++)
        extendSelectionForwardByCharacterCommand(); 
    deleteCommand(); 
}

</script>

<title>Editing Test</title> 
</head> 
<body contenteditable id="root">
<div id="test" class="editing">There is a tide</div>
<div class="editing">in the affairs of men<br>Which taken at the flood</div>
<script>
runEditingTest();
</script>

</body>
</html>