upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / insertImage.html
1 <html>
2 <head>
3 <script src=../editing.js language="JavaScript" type="text/JavaScript"></script>
4 <script>
5 function log(message) {
6     var console = document.getElementById("console");
7     var li = document.createElement("li");
8     var text = document.createTextNode(message);
9     li.appendChild(text);
10     console.appendChild(li);
11 }
12
13 function editingTest() {
14     insertImageCommand("../resources/abe.png");
15     insertImageCommand("../resources/do-not-name-an-image-this.jpg");
16 }
17 </script>
18 </head>
19
20 <body>
21 <p>This is a test of execCommand(InsertImage, ...).  The first test passes execCommand a path to a valid image, the second passes execCommand a path where no image should exist.</p>
22
23 <div id="test" contenteditable="true"></div>
24 <ul id="console"></ul>
25 <script>
26 runEditingTest();
27 </script>
28
29 </body>
30
31 </html>