OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test for Bug 41339 - unicode-range property only with a descending range
causes a crash</title> | 4 <title>Test for Bug 41339 - unicode-range property only with a descending range
causes a crash</title> |
5 <style> | 5 <style> |
6 @font-face { | 6 @font-face { |
7 font-family: 'myfont'; | 7 font-family: 'myfont'; |
8 src: local(Courier), local('Courier New'); /* Use monospace font */ | 8 src: local(Courier), local('Courier New'); /* Use monospace font */ |
9 unicode-range: U+062-60; | 9 unicode-range: U+062-60; |
10 } | 10 } |
11 </style> | 11 </style> |
12 <script src="../js/resources/js-test-pre.js"></script> | 12 <script src="../../resources/js-test.js"></script> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 <div id="description"></div> | 15 <div id="description"></div> |
16 <div style="font-family: 'myfont'"> | 16 <div style="font-family: 'myfont'"> |
17 <span id="i_s" style="border:solid 1px">iiiiiiiiii</span><br/> | 17 <span id="i_s" style="border:solid 1px">iiiiiiiiii</span><br/> |
18 <span id="x_s" style="border:solid 1px">XXXXXXXXXX</span><br/> | 18 <span id="x_s" style="border:solid 1px">XXXXXXXXXX</span><br/> |
19 </div> | 19 </div> |
20 <div id="console"></div> | 20 <div id="console"></div> |
21 <script> | 21 <script> |
22 description("Interval unicode-ranges that descend are invalid and omitted. Witho
ut any valid ranges, the descriptor is omitted. As a result, the @font-face rule
in this file is applied to all characters. This test passes if the following i'
s and X's are shown in Courier and they have the same length on screen. As of r6
2096, opening this file causes a crash instead."); | 22 description("Interval unicode-ranges that descend are invalid and omitted. Witho
ut any valid ranges, the descriptor is omitted. As a result, the @font-face rule
in this file is applied to all characters. This test passes if the following i'
s and X's are shown in Courier and they have the same length on screen. As of r6
2096, opening this file causes a crash instead."); |
23 | 23 |
24 shouldBe("document.getElementById('i_s').offsetWidth", "document.getElementById(
'x_s').offsetWidth"); | 24 shouldBe("document.getElementById('i_s').offsetWidth", "document.getElementById(
'x_s').offsetWidth"); |
25 </script> | 25 </script> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
28 | 28 |
OLD | NEW |