blob: 2f829f8c80d8b4fd850ecfe552dde8c96dc007cf [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpResourceLoadCallbacks();
testRunner.dumpAsText();
}
if (window.internals) {
internals.invalidateFontCache();
internals.clearMemoryCache();
}
</script>
<style>
@font-face {
font-family: "WebFont";
font-weight: 100;
src: url("../../resources/Ahem_CJK.ttf"), url("garbage2");
}
@font-face {
font-family: "WebFont";
font-weight: 900;
src: url("garbage3"), url("garbage4");
}
@font-face {
font-family: "WebFont2";
src: url("garbage5"), url("garbage6");
}
</style>
</head>
<body>
This test makes sure that unnecessary fonts aren't downloaded. The test fails if any of the "garbage" font names are requested.
<div style="font-size: 100px; font-weight: 100; font-family: 'WebFont', 'WebFont2';">&#x6A2A;</div>
</body>
</html>