| OLD | NEW |
| 1 description("This tests createMarkup via insertOrderedList. It makes sure that
we don't delete font styles and text decorations. This test must be rewritten w
hen insertOrderedList is modified not to use moveParagraph."); | 1 description("This tests createMarkup via insertOrderedList. It makes sure that
we don't delete font styles and text decorations. This test must be rewritten w
hen insertOrderedList is modified not to use moveParagraph."); |
| 2 | 2 |
| 3 var boundedContainer = document.createElement("div"); | 3 var boundedContainer = document.createElement("div"); |
| 4 var container = document.createElement("div"); | 4 var container = document.createElement("div"); |
| 5 boundedContainer.contentEditalbe = false; | 5 boundedContainer.contentEditalbe = false; |
| 6 boundedContainer.appendChild(container); | 6 boundedContainer.appendChild(container); |
| 7 container.contentEditable = true; | 7 container.contentEditable = true; |
| 8 document.body.appendChild(boundedContainer); | 8 document.body.appendChild(boundedContainer); |
| 9 | 9 |
| 10 function testCreateMarkup( text ) | 10 function testCreateMarkup( text ) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 shouldBeSameAfterCreateMarkup('<b>hello</b>'); | 31 shouldBeSameAfterCreateMarkup('<b>hello</b>'); |
| 32 shouldBeSameAfterCreateMarkup('<strong>hello</strong>'); | 32 shouldBeSameAfterCreateMarkup('<strong>hello</strong>'); |
| 33 shouldBeSameAfterCreateMarkup('<i>hello</i>'); | 33 shouldBeSameAfterCreateMarkup('<i>hello</i>'); |
| 34 shouldBeSameAfterCreateMarkup('<em>hello</em>'); | 34 shouldBeSameAfterCreateMarkup('<em>hello</em>'); |
| 35 shouldBeSameAfterCreateMarkup('<s>hello</s>'); | 35 shouldBeSameAfterCreateMarkup('<s>hello</s>'); |
| 36 shouldBeSameAfterCreateMarkup('<strike>hello</strike>'); | 36 shouldBeSameAfterCreateMarkup('<strike>hello</strike>'); |
| 37 shouldBeSameAfterCreateMarkup('<em><s><u>hello</u></s></em>'); | 37 shouldBeSameAfterCreateMarkup('<em><s><u>hello</u></s></em>'); |
| 38 shouldBeSameAfterCreateMarkup('<u><s><em><u>hello</u></em></s></u>'); | 38 shouldBeSameAfterCreateMarkup('<u><s><em><u>hello</u></em></s></u>'); |
| 39 shouldBeSameAfterCreateMarkup('<i><span style=\"text-decoration: underline overl
ine line-through;\">world</span></i>'); | 39 shouldBeSameAfterCreateMarkup('<i><span style=\"text-decoration-line: underline
overline line-through;\">world</span></i>'); |
| 40 shouldBeSameAfterCreateMarkup('<em><u style="font-weight: bold;">hello</u></em>'
); | 40 shouldBeSameAfterCreateMarkup('<em><u style="font-weight: bold;">hello</u></em>'
); |
| 41 shouldBeSameAfterCreateMarkup('hello <u>world</u> webkit'); | 41 shouldBeSameAfterCreateMarkup('hello <u>world</u> webkit'); |
| 42 | 42 |
| 43 document.body.removeChild(boundedContainer); | 43 document.body.removeChild(boundedContainer); |
| 44 | 44 |
| 45 var successfullyParsed = true; | 45 var successfullyParsed = true; |
| OLD | NEW |