OLD | NEW |
1 description("Ensure cursor placement matches IE6/IE7/FF3 when clicking above/bel
ow lines in padding.") | 1 description("Ensure cursor placement matches IE6/IE7/FF3 when clicking above/bel
ow lines in padding.") |
2 | 2 |
3 document.body.style.margin = 0; | 3 document.body.style.margin = 0; |
4 | 4 |
5 var div = document.createElement("div"); | 5 var div = document.createElement("div"); |
6 div.style.cssText = "font-family: ahem; font-size: 20px; -webkit-text-fill-color
: yellow; width: 40px; height: 80px; padding: 20px; background-color: green;"; | 6 div.style.cssText = "font-family: Ahem; font-size: 20px; -webkit-text-fill-color
: yellow; width: 40px; height: 80px; padding: 20px; background-color: green;"; |
7 div.contentEditable = true; | 7 div.contentEditable = true; |
8 | 8 |
9 var firstText = document.createTextNode("XX"); | 9 var firstText = document.createTextNode("XX"); |
10 var firstDiv = document.createElement("div"); | 10 var firstDiv = document.createElement("div"); |
11 firstDiv.appendChild(firstText); | 11 firstDiv.appendChild(firstText); |
12 firstDiv.style.cssText = "padding-bottom: 19px; border-bottom: 1px solid pink; m
argin-bottom: 20px"; | 12 firstDiv.style.cssText = "padding-bottom: 19px; border-bottom: 1px solid pink; m
argin-bottom: 20px"; |
13 div.appendChild(firstDiv); | 13 div.appendChild(firstDiv); |
14 | 14 |
15 var secondText = document.createTextNode("YY"); | 15 var secondText = document.createTextNode("YY"); |
16 var secondDiv = document.createElement("div"); | 16 var secondDiv = document.createElement("div"); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 editingTest("android"); | 98 editingTest("android"); |
99 | 99 |
100 // Clean up after ourselves if we're not being run in the browser | 100 // Clean up after ourselves if we're not being run in the browser |
101 if (window.eventSender) { | 101 if (window.eventSender) { |
102 document.body.removeChild(div); | 102 document.body.removeChild(div); |
103 } else { | 103 } else { |
104 runInteractiveTests(); | 104 runInteractiveTests(); |
105 } | 105 } |
106 | 106 |
107 var successfullyParsed = true; | 107 var successfullyParsed = true; |
OLD | NEW |