| Index: LayoutTests/http/tests/webfont/webfont-cors.html
|
| diff --git a/LayoutTests/http/tests/webfont/webfont-cors.html b/LayoutTests/http/tests/webfont/webfont-cors.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b2b85d5f8330afd51999b7f72e71575f28579cc5
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/webfont/webfont-cors.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +@font-face {
|
| + font-family: corsOK;
|
| + src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php);
|
| +}
|
| +@font-face {
|
| + font-family: corsNG;
|
| + src: url(http://127.0.0.1:8080/resources/Ahem.ttf);
|
| +}
|
| +</style>
|
| +<div style="font-family: corsOK;">
|
| +This text should be rendered with ahem font.
|
| +</div>
|
| +<div style="font-family: corsNG;">
|
| +This text should NOT be rendered with ahem font.
|
| +</div>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| +document.fonts.ready().then(function() {
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +});
|
| +</script>
|
|
|