summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/deleting/delete-image-002.html
blob: fe0dac6a555d0b1f63988b1d56fcf294800d3b7c (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
36
37
38
<html> 
<head>

<style>
.editing { 
    border: 2px solid red; 
    padding: 12px; 
    font-size: 24px; 
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>

<script>

function editingTest() {
    for (i = 0; i < 2; i++) {
        moveSelectionForwardByCharacterCommand();
    }
    deleteCommand();
}

</script>

<title>Editing Test</title> 
</head> 
<body>
<div contenteditable id="root" class="editing">
<span id="test">a<img src="../resources/abe.png">new 
<br>nation <i>  </i> <img src="../resources/abe.png"> conceived
<br>nation<img src="../resources/abe.png"></span>
</div>

<script>
runEditingTest();
</script>

</body>
</html>