| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/x
link"> | 1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/x
link"> |
| 2 <head> | 2 <head> |
| 3 <style type="text/css"> | 3 <style type="text/css"> |
| 4 @font-face { | 4 @font-face { |
| 5 font-family: "Ahem"; | 5 font-family: "Ahem"; |
| 6 src: url(../../../resources/Ahem.ttf); | 6 src: url(../../../resources/Ahem.ttf); |
| 7 } | 7 } |
| 8 body { | 8 body { |
| 9 margin:0px; | 9 margin:0px; |
| 10 border:0px; | 10 border:0px; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 shouldBe('image2.left', '175.00', false, tolerance); | 144 shouldBe('image2.left', '175.00', false, tolerance); |
| 145 shouldBe('image2.top', '100.00', false, tolerance); | 145 shouldBe('image2.top', '100.00', false, tolerance); |
| 146 shouldBe('image2.width', '50.00', false, tolerance); | 146 shouldBe('image2.width', '50.00', false, tolerance); |
| 147 shouldBe('image2.height', '25.00', false, tolerance); | 147 shouldBe('image2.height', '25.00', false, tolerance); |
| 148 shouldBe('image2.right', '225.00', false, tolerance); | 148 shouldBe('image2.right', '225.00', false, tolerance); |
| 149 shouldBe('image2.bottom', '125.00', false, tolerance); | 149 shouldBe('image2.bottom', '125.00', false, tolerance); |
| 150 text2 = document.getElementById("text2").getBoundingClientRect(); | 150 text2 = document.getElementById("text2").getBoundingClientRect(); |
| 151 shouldBe('text2.left', '175.00', false, tolerance); | 151 shouldBe('text2.left', '175.00', false, tolerance); |
| 152 shouldBe('text2.top', '132.66', false, tolerance); | 152 shouldBe('text2.top', '132.66', false, tolerance); |
| 153 shouldBe('text2.width', '47.98', false, tolerance); | 153 shouldBe('text2.width', '47.98', false, tolerance); |
| 154 shouldBe('text2.height', '5.94', false, tolerance); | 154 shouldBe('text2.height', '6.02', false, tolerance); |
| 155 shouldBe('text2.right', '222.98', false, tolerance); | 155 shouldBe('text2.right', '222.98', false, tolerance); |
| 156 shouldBe('text2.bottom', '138.60', false, tolerance); | 156 shouldBe('text2.bottom', '138.70', false, tolerance); |
| 157 debug(""); | 157 debug(""); |
| 158 | 158 |
| 159 svg3 = document.getElementById("svg3").getBoundingClientRect(); | 159 svg3 = document.getElementById("svg3").getBoundingClientRect(); |
| 160 shouldBe('svg3.left', '900.00', false, tolerance); | 160 shouldBe('svg3.left', '900.00', false, tolerance); |
| 161 shouldBe('svg3.top', '500.00', false, tolerance); | 161 shouldBe('svg3.top', '500.00', false, tolerance); |
| 162 shouldBe('svg3.width', '300.00', false, tolerance); | 162 shouldBe('svg3.width', '300.00', false, tolerance); |
| 163 shouldBe('svg3.height', '100.00', false, tolerance); | 163 shouldBe('svg3.height', '100.00', false, tolerance); |
| 164 shouldBe('svg3.right', '1200.00', false, tolerance); | 164 shouldBe('svg3.right', '1200.00', false, tolerance); |
| 165 shouldBe('svg3.bottom', '600.00', false, tolerance); | 165 shouldBe('svg3.bottom', '600.00', false, tolerance); |
| 166 rect3 = document.getElementById("rect3").getBoundingClientRect(); | 166 rect3 = document.getElementById("rect3").getBoundingClientRect(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 document.fonts.ready.then(function() { | 199 document.fonts.ready.then(function() { |
| 200 runAfterLayoutAndPaint(repaintTest); | 200 runAfterLayoutAndPaint(repaintTest); |
| 201 }); | 201 }); |
| 202 } else { | 202 } else { |
| 203 debug("This test only works in DRT."); | 203 debug("This test only works in DRT."); |
| 204 } | 204 } |
| 205 </script> | 205 </script> |
| 206 | 206 |
| 207 </body> | 207 </body> |
| 208 </html> | 208 </html> |
| OLD | NEW |