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 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 font-family:myfont_3; | 46 font-family:myfont_3; |
47 src: local('Courier'), local('Courier New'); | 47 src: local('Courier'), local('Courier New'); |
48 } | 48 } |
49 @font-face { | 49 @font-face { |
50 font-family:myfont_3; | 50 font-family:myfont_3; |
51 src: url('resources/DownLoadErrorAhem.otf'), local(Arial); | 51 src: url('resources/DownLoadErrorAhem.otf'), local(Arial); |
52 unicode-range: u+69; /* 'i' */ | 52 unicode-range: u+69; /* 'i' */ |
53 } | 53 } |
54 | 54 |
55 </style> | 55 </style> |
56 <script src="../js/resources/js-test-pre.js"></script> | 56 <script src="../../resources/js-test.js"></script> |
57 </head> | 57 </head> |
58 <body onload="runTest()"> | 58 <body onload="runTest()"> |
59 <div id="description"></div> | 59 <div id="description"></div> |
60 <div id="tests"></div> | 60 <div id="tests"></div> |
61 | 61 |
62 <div id="console"></div> | 62 <div id="console"></div> |
63 <div id="out"></div> | 63 <div id="out"></div> |
64 <script> | 64 <script> |
65 if (window.testRunner) | 65 if (window.testRunner) |
66 window.testRunner.waitUntilDone(); | 66 window.testRunner.waitUntilDone(); |
(...skipping 59 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 |