| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 testsElement.appendChild(document.createElement("br")); | 123 testsElement.appendChild(document.createElement("br")); |
| 124 } | 124 } |
| 125 | 125 |
| 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 <script src="../js/resources/js-test-post.js"></script> | |
| 134 </body> | 133 </body> |
| 135 </html> | 134 </html> |
| 136 | 135 |
| OLD | NEW |