Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insertHTML.html
blobdbb0ed5885663e91d5a54844dc569a93109ecebd
1 <html>
2 <head>
3 <script src=../editing.js language="JavaScript" type="text/JavaScript"></script>
4 <script>
6 if (window.testRunner)
7 window.testRunner.dumpAsText();
9 function log(message) {
10 var console = document.getElementById("console");
11 var li = document.createElement("li");
12 var text = document.createTextNode(message);
13 li.appendChild(text);
14 console.appendChild(li);
17 function editingTest() {
18 var d = document.getElementById("test");
19 var html = d.innerHTML.toLowerCase();
21 selectAllCommand();
22 deleteCommand();
23 insertHTMLCommand(html);
25 log(d.innerHTML);
27 </script>
28 </head>
30 <body>
31 <p>This is a test of execCommand(insertHTML, ...). The contents of the editable div below should be the same before and after the test.</p>
32 <div id="test" contenteditable="true">hello<table style="display:inline" border=1><tr><td>1</td><td>2</td></tr></table><b>world</b>!</div>
33 <ul id="console"></ul>
34 <script>
35 runEditingTest();
36 </script>
37 </body>
39 </html>