| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test for Bug 42342 - Font download error for an @font-face rule invalidat
es other @font-face rules for the same font-family</title> | 4 <title>Test for Bug 42342 - Font download error for an @font-face rule invalidat
es other @font-face rules for the same font-family</title> |
| 5 <style> | 5 <style> |
| 6 .test { | 6 .test { |
| 7 font-family: Times; | 7 font-family: Times; |
| 8 border: solid 1px; | 8 border: solid 1px; |
| 9 } | 9 } |
| 10 | 10 |
| 11 /* Test 0: Download sucess */ | 11 /* Test 0: Download success */ |
| 12 @font-face { | 12 @font-face { |
| 13 font-family:myfont_0; | 13 font-family:myfont_0; |
| 14 src: local('Courier'), local('Courier New'); | 14 src: local('Courier'), local('Courier New'); |
| 15 } | 15 } |
| 16 @font-face { | 16 @font-face { |
| 17 font-family:myfont_0; | 17 font-family:myfont_0; |
| 18 src: url('../../resources/Ahem.otf'); | 18 src: url('../../resources/Ahem.otf'); |
| 19 unicode-range: u+69; /* 'i' */ | 19 unicode-range: u+69; /* 'i' */ |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // We need to run tests after the font downloading succeeded or failed. | 126 // We need to run tests after the font downloading succeeded or failed. |
| 127 // Using a timer is not ideal, but there seems to be no better options. | 127 // Using a timer is not ideal, but there seems to be no better options. |
| 128 function runTest() | 128 function runTest() |
| 129 { | 129 { |
| 130 window.setTimeout(test, 200); | 130 window.setTimeout(test, 200); |
| 131 } | 131 } |
| 132 </script> | 132 </script> |
| 133 </body> | 133 </body> |
| 134 </html> | 134 </html> |
| 135 | 135 |
| OLD | NEW |