Tests/LibWeb: Move assets used by multiple test types into Assets/

Having to go through multiple levels of .. is not ideal, but less odd
than reaching into another test type's data files.
This commit is contained in:
Sam Atkins 2024-11-05 12:53:30 +00:00 committed by Sam Atkins
commit 08253d6aee
Notes: github-actions[bot] 2024-11-05 16:45:25 +00:00
25 changed files with 27 additions and 27 deletions

View file

@ -21,7 +21,7 @@
println(`zeroBytesFace.family: ${zeroBytesFace.family}`); // "Empty Font"
});
const fontData = await fetch("../../../Ref/assets/HashSans.woff").then(
const fontData = await fetch("../../../Assets/HashSans.woff").then(
response => response.arrayBuffer(),
(reason) => {
println(`FAILED to fetch font from local file ${reason}`);

View file

@ -5,7 +5,7 @@
// FIXME: Surely there's a better way to get this font URL
let fontUrl = new URL(location.href);
fontUrl.search = "";
fontUrl += "/../../../../Ref/assets/HashSans.woff";
fontUrl += "/../../../../Assets/HashSans.woff";
const hashSans = new FontFace("Hash Sans", `url(${fontUrl})`);
println(`hashSans.family: ${hashSans.family}`);

View file

@ -3,7 +3,7 @@
asyncTest(async done => {
const fontFaceSet = document.fonts;
const fontFace = new FontFace("Hash Sans", "url(../../../../Ref/assets/HashSans.woff)");
const fontFace = new FontFace("Hash Sans", "url(../../../../Assets/HashSans.woff)");
fontFaceSet.add(fontFace);
try {

View file

@ -3,7 +3,7 @@
<script>
test(() => {
const fontFaceSet = document.fonts;
const fontFace = new FontFace("Hash Sans", 'url(../../../../Ref/assets/HashSans.woff)');
const fontFace = new FontFace("Hash Sans", 'url(../../../../Assets/HashSans.woff)');
println("-- Empty FontFaceSet --");
println(`fontFaceSet.size: ${fontFaceSet.size}`);