OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test for Bug 41509 - Ranges for @font-face unicode-range must be separate
d by commas</title> | 4 <title>Test for Bug 41509 - Ranges for @font-face unicode-range must be separate
d by commas</title> |
5 <style> | 5 <style> |
6 .test { | 6 .test { |
7 border: solid 1px; | 7 border: solid 1px; |
8 } | 8 } |
9 | 9 |
10 /* Test 0: Comma-separated list, which is valid. */ | 10 /* Test 0: Comma-separated list, which is valid. */ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 font-family:myfont_6; | 78 font-family:myfont_6; |
79 src: local('Times'); | 79 src: local('Times'); |
80 } | 80 } |
81 @font-face { | 81 @font-face { |
82 font-family:myfont_6; | 82 font-family:myfont_6; |
83 src: local('Courier'); | 83 src: local('Courier'); |
84 unicode-range: u+69/u+6a; /* 'i' and 'j' */ | 84 unicode-range: u+69/u+6a; /* 'i' and 'j' */ |
85 } | 85 } |
86 | 86 |
87 </style> | 87 </style> |
88 <script src="../js/resources/js-test-pre.js"></script> | 88 <script src="../../resources/js-test.js"></script> |
89 </head> | 89 </head> |
90 <body> | 90 <body> |
91 <div id="description"></div> | 91 <div id="description"></div> |
92 <div id="tests"></div> | 92 <div id="tests"></div> |
93 | 93 |
94 <div id="console"></div> | 94 <div id="console"></div> |
95 <script> | 95 <script> |
96 description("unicode-range can have comma-separated multiple ranges. For each of
the following pairs, the upper and the lower lines should have the same length
on screen."); | 96 description("unicode-range can have comma-separated multiple ranges. For each of
the following pairs, the upper and the lower lines should have the same length
on screen."); |
97 | 97 |
98 var testsElement = document.getElementById("tests"); | 98 var testsElement = document.getElementById("tests"); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 createAndAppendSpan(refId, subTestId, refFontFamily); | 136 createAndAppendSpan(refId, subTestId, refFontFamily); |
137 | 137 |
138 shouldBe("document.getElementById('" + testId + "').offsetWidth", "docum
ent.getElementById('" + refId + "').offsetWidth"); | 138 shouldBe("document.getElementById('" + testId + "').offsetWidth", "docum
ent.getElementById('" + refId + "').offsetWidth"); |
139 } | 139 } |
140 testsElement.appendChild(document.createElement("br")); | 140 testsElement.appendChild(document.createElement("br")); |
141 } | 141 } |
142 </script> | 142 </script> |
143 </body> | 143 </body> |
144 </html> | 144 </html> |
145 | 145 |
OLD | NEW |