From 08253d6aee061ad15dbe0b09664358eca34a94c6 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 5 Nov 2024 12:53:30 +0000 Subject: [PATCH] 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. --- Tests/LibWeb/{Layout/input => Assets}/120.png | Bin Tests/LibWeb/{Ref/assets => Assets}/HashSans.woff | Bin .../Layout/input/aspect-ratio-auto-and-ratio.html | 2 +- Tests/LibWeb/Layout/input/aspect-ratio-auto.html | 2 +- .../Layout/input/aspect-ratio-degenerate-ratio.html | 2 +- Tests/LibWeb/Layout/input/aspect-ratio-ratio.html | 2 +- ...centage-main-size-during-min-content-sizing.html | 2 +- ...size-contribution-with-main-size-constraint.html | 2 +- .../Layout/input/height-min-max-fit-content.html | 6 +++--- .../img-with-box-sizing-border-box-and-padding.html | 2 +- ...width-and-indefinite-containing-block-width.html | 2 +- ...idth-and-min-content-containing-block-width.html | 2 +- Tests/LibWeb/Layout/input/input-image-to-text.html | 2 +- Tests/LibWeb/Layout/input/input-image.html | 6 +++--- .../Layout/input/picture-source-media-query.html | 2 +- ...st-available-font-should-include-whitespace.html | 2 +- Tests/LibWeb/Ref/reference/unicode-range-ref.html | 2 +- Tests/LibWeb/Ref/space-glyph-width.html | 2 +- Tests/LibWeb/Ref/unicode-range.html | 2 +- .../Text/input/HTML/form-image-submission.html | 2 +- .../LibWeb/Text/input/css/FontFace-binary-data.html | 2 +- Tests/LibWeb/Text/input/css/FontFace-load-urls.html | 2 +- Tests/LibWeb/Text/input/css/FontFaceSet-load.html | 2 +- .../LibWeb/Text/input/css/FontFaceSet-setlike.html | 2 +- Tests/LibWeb/Text/input/input-image.html | 2 +- 25 files changed, 27 insertions(+), 27 deletions(-) rename Tests/LibWeb/{Layout/input => Assets}/120.png (100%) rename Tests/LibWeb/{Ref/assets => Assets}/HashSans.woff (100%) diff --git a/Tests/LibWeb/Layout/input/120.png b/Tests/LibWeb/Assets/120.png similarity index 100% rename from Tests/LibWeb/Layout/input/120.png rename to Tests/LibWeb/Assets/120.png diff --git a/Tests/LibWeb/Ref/assets/HashSans.woff b/Tests/LibWeb/Assets/HashSans.woff similarity index 100% rename from Tests/LibWeb/Ref/assets/HashSans.woff rename to Tests/LibWeb/Assets/HashSans.woff diff --git a/Tests/LibWeb/Layout/input/aspect-ratio-auto-and-ratio.html b/Tests/LibWeb/Layout/input/aspect-ratio-auto-and-ratio.html index 803806662c7..b69beb6dc11 100644 --- a/Tests/LibWeb/Layout/input/aspect-ratio-auto-and-ratio.html +++ b/Tests/LibWeb/Layout/input/aspect-ratio-auto-and-ratio.html @@ -4,4 +4,4 @@ aspect-ratio: auto 2/1; border: 1px solid black; } -
+
diff --git a/Tests/LibWeb/Layout/input/aspect-ratio-auto.html b/Tests/LibWeb/Layout/input/aspect-ratio-auto.html index 7de1e453a0b..15f24842856 100644 --- a/Tests/LibWeb/Layout/input/aspect-ratio-auto.html +++ b/Tests/LibWeb/Layout/input/aspect-ratio-auto.html @@ -4,4 +4,4 @@ aspect-ratio: auto; border: 1px solid black; } -
+
diff --git a/Tests/LibWeb/Layout/input/aspect-ratio-degenerate-ratio.html b/Tests/LibWeb/Layout/input/aspect-ratio-degenerate-ratio.html index 291fad94b64..ee8b148fa92 100644 --- a/Tests/LibWeb/Layout/input/aspect-ratio-degenerate-ratio.html +++ b/Tests/LibWeb/Layout/input/aspect-ratio-degenerate-ratio.html @@ -3,4 +3,4 @@ width: 200px; aspect-ratio: 0/1; } - \ No newline at end of file + \ No newline at end of file diff --git a/Tests/LibWeb/Layout/input/aspect-ratio-ratio.html b/Tests/LibWeb/Layout/input/aspect-ratio-ratio.html index 9b946e4116b..601fa9476f1 100644 --- a/Tests/LibWeb/Layout/input/aspect-ratio-ratio.html +++ b/Tests/LibWeb/Layout/input/aspect-ratio-ratio.html @@ -4,4 +4,4 @@ aspect-ratio: 2/1; border: 1px solid black; } -
+
diff --git a/Tests/LibWeb/Layout/input/flex/flex-item-percentage-main-size-during-min-content-sizing.html b/Tests/LibWeb/Layout/input/flex/flex-item-percentage-main-size-during-min-content-sizing.html index 144c04435e1..bfab65cff99 100644 --- a/Tests/LibWeb/Layout/input/flex/flex-item-percentage-main-size-during-min-content-sizing.html +++ b/Tests/LibWeb/Layout/input/flex/flex-item-percentage-main-size-during-min-content-sizing.html @@ -16,4 +16,4 @@ width: 100%; } - + diff --git a/Tests/LibWeb/Layout/input/flex/intrinsic-cross-size-contribution-with-main-size-constraint.html b/Tests/LibWeb/Layout/input/flex/intrinsic-cross-size-contribution-with-main-size-constraint.html index 33a040b1be6..e6a61f09faf 100644 --- a/Tests/LibWeb/Layout/input/flex/intrinsic-cross-size-contribution-with-main-size-constraint.html +++ b/Tests/LibWeb/Layout/input/flex/intrinsic-cross-size-contribution-with-main-size-constraint.html @@ -6,4 +6,4 @@ left: 0px; } img { max-width: 50px; } - \ No newline at end of file + \ No newline at end of file diff --git a/Tests/LibWeb/Layout/input/height-min-max-fit-content.html b/Tests/LibWeb/Layout/input/height-min-max-fit-content.html index 40d818d9f50..b0652ff79bc 100644 --- a/Tests/LibWeb/Layout/input/height-min-max-fit-content.html +++ b/Tests/LibWeb/Layout/input/height-min-max-fit-content.html @@ -3,6 +3,6 @@ .max { height: max-content; } .fit { height: fit-content; } - - - + + + diff --git a/Tests/LibWeb/Layout/input/img-with-box-sizing-border-box-and-padding.html b/Tests/LibWeb/Layout/input/img-with-box-sizing-border-box-and-padding.html index 1ba88429043..b4a76613c2f 100644 --- a/Tests/LibWeb/Layout/input/img-with-box-sizing-border-box-and-padding.html +++ b/Tests/LibWeb/Layout/input/img-with-box-sizing-border-box-and-padding.html @@ -10,4 +10,4 @@ img { .with-width { width: 100px; } - + diff --git a/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-indefinite-containing-block-width.html b/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-indefinite-containing-block-width.html index 20ba40233c3..a3257743764 100644 --- a/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-indefinite-containing-block-width.html +++ b/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-indefinite-containing-block-width.html @@ -1,4 +1,4 @@
\ No newline at end of file +
\ No newline at end of file diff --git a/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-min-content-containing-block-width.html b/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-min-content-containing-block-width.html index d8e3127b484..4d55fb0e773 100644 --- a/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-min-content-containing-block-width.html +++ b/Tests/LibWeb/Layout/input/img-with-percentage-max-width-and-min-content-containing-block-width.html @@ -1,4 +1,4 @@ \ No newline at end of file + \ No newline at end of file diff --git a/Tests/LibWeb/Layout/input/input-image-to-text.html b/Tests/LibWeb/Layout/input/input-image-to-text.html index 18543e0090d..aa929fcf026 100644 --- a/Tests/LibWeb/Layout/input/input-image-to-text.html +++ b/Tests/LibWeb/Layout/input/input-image-to-text.html @@ -1,4 +1,4 @@ - + diff --git a/Tests/LibWeb/Text/input/css/FontFace-binary-data.html b/Tests/LibWeb/Text/input/css/FontFace-binary-data.html index 973296b1aab..1e4dc40d201 100644 --- a/Tests/LibWeb/Text/input/css/FontFace-binary-data.html +++ b/Tests/LibWeb/Text/input/css/FontFace-binary-data.html @@ -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}`); diff --git a/Tests/LibWeb/Text/input/css/FontFace-load-urls.html b/Tests/LibWeb/Text/input/css/FontFace-load-urls.html index dee0c5c6c6f..546f953f00a 100644 --- a/Tests/LibWeb/Text/input/css/FontFace-load-urls.html +++ b/Tests/LibWeb/Text/input/css/FontFace-load-urls.html @@ -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}`); diff --git a/Tests/LibWeb/Text/input/css/FontFaceSet-load.html b/Tests/LibWeb/Text/input/css/FontFaceSet-load.html index af79e81d9b7..23553e71b05 100644 --- a/Tests/LibWeb/Text/input/css/FontFaceSet-load.html +++ b/Tests/LibWeb/Text/input/css/FontFaceSet-load.html @@ -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 { diff --git a/Tests/LibWeb/Text/input/css/FontFaceSet-setlike.html b/Tests/LibWeb/Text/input/css/FontFaceSet-setlike.html index cad44d85d80..027a0207d07 100644 --- a/Tests/LibWeb/Text/input/css/FontFaceSet-setlike.html +++ b/Tests/LibWeb/Text/input/css/FontFaceSet-setlike.html @@ -3,7 +3,7 @@