Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insertImage.html
blobbca05d18824839d7337b4252226d57126c6da80f
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);
13 function editingTest() {
14 insertImageCommand("../resources/abe.png");
15 insertImageCommand("../resources/do-not-name-an-image-this.jpg");
17 </script>
18 </head>
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>
23 <div id="test" contenteditable="true"></div>
24 <ul id="console"></ul>
25 <script>
26 runEditingTest();
27 </script>
29 </body>
31 </html>