36 lines
845 B
HTML
36 lines
845 B
HTML
<!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';">横</div>
|
|
</body>
|
|
</html>
|