From 51e023b7eb12e87a172e1d60e62ecc7448eff836 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 16 Aug 2024 22:39:37 +0200 Subject: Add more image aspect ratio tests --- test/html/Makefile.am | 4 ++- test/html/render/img-aspect-ratio-mix-border.html | 42 ++++++++++++++++++++++ .../render/img-aspect-ratio-mix-border.ref.html | 42 ++++++++++++++++++++++ test/html/render/img-aspect-ratio-mix-margin.html | 42 ++++++++++++++++++++++ .../render/img-aspect-ratio-mix-margin.ref.html | 42 ++++++++++++++++++++++ test/html/render/img-aspect-ratio-mix.html | 41 +++++++++++++++++++++ test/html/render/img-aspect-ratio-mix.ref.html | 41 +++++++++++++++++++++ test/html/render/img-max-bounds.html | 41 --------------------- test/html/render/img-max-bounds.ref.html | 41 --------------------- 9 files changed, 253 insertions(+), 83 deletions(-) create mode 100644 test/html/render/img-aspect-ratio-mix-border.html create mode 100644 test/html/render/img-aspect-ratio-mix-border.ref.html create mode 100644 test/html/render/img-aspect-ratio-mix-margin.html create mode 100644 test/html/render/img-aspect-ratio-mix-margin.ref.html create mode 100644 test/html/render/img-aspect-ratio-mix.html create mode 100644 test/html/render/img-aspect-ratio-mix.ref.html delete mode 100644 test/html/render/img-max-bounds.html delete mode 100644 test/html/render/img-max-bounds.ref.html (limited to 'test') diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 52ddf7f7..044d5437 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -18,9 +18,11 @@ TESTS = \ render/hackernews.html \ render/img-aspect-ratio-absolute.html \ render/img-aspect-ratio-div.html \ + render/img-aspect-ratio-mix-border.html \ + render/img-aspect-ratio-mix-margin.html \ + render/img-aspect-ratio-mix.html \ render/img-aspect-ratio-relative-inside-fixed.html \ render/img-aspect-ratio.html \ - render/img-max-bounds.html \ render/main-style.html \ render/margin-auto.html \ render/max-width-body.html \ diff --git a/test/html/render/img-aspect-ratio-mix-border.html b/test/html/render/img-aspect-ratio-mix-border.html new file mode 100644 index 00000000..38cd25e8 --- /dev/null +++ b/test/html/render/img-aspect-ratio-mix-border.html @@ -0,0 +1,42 @@ + + + + Test image aspect ratio while constrained + + + +
+

All images should be 32px by 32px like this one:

+ +

Only one max-* contraint

+ + + + +

One max-* and fixed size contraint

+ + + + +

Two max-* contraints

+ + + + +

Both min-* and max-* constrained

+ + + + +

Bad constraints

+ + + + +
+ + diff --git a/test/html/render/img-aspect-ratio-mix-border.ref.html b/test/html/render/img-aspect-ratio-mix-border.ref.html new file mode 100644 index 00000000..775c8cb2 --- /dev/null +++ b/test/html/render/img-aspect-ratio-mix-border.ref.html @@ -0,0 +1,42 @@ + + + + Test image aspect ratio while constrained + + + +
+

All images should be 32px by 32px like this one:

+ +

Only one max-* contraint

+ + + + +

One max-* and fixed size contraint

+ + + + +

Two max-* contraints

+ + + + +

Both min-* and max-* constrained

+ + + + +

Bad constraints

+ + + + +
+ + diff --git a/test/html/render/img-aspect-ratio-mix-margin.html b/test/html/render/img-aspect-ratio-mix-margin.html new file mode 100644 index 00000000..af06cd76 --- /dev/null +++ b/test/html/render/img-aspect-ratio-mix-margin.html @@ -0,0 +1,42 @@ + + + + Test image aspect ratio while constrained + + + +
+

All images should be 32px by 32px like this one:

+ +

Only one max-* contraint

+ + + + +

One max-* and fixed size contraint

+ + + + +

Two max-* contraints

+ + + + +

Both min-* and max-* constrained

+ + + + +

Bad constraints

+ + + + +
+ + diff --git a/test/html/render/img-aspect-ratio-mix-margin.ref.html b/test/html/render/img-aspect-ratio-mix-margin.ref.html new file mode 100644 index 00000000..36207ab6 --- /dev/null +++ b/test/html/render/img-aspect-ratio-mix-margin.ref.html @@ -0,0 +1,42 @@ + + + + Test image aspect ratio while constrained + + + +
+

All images should be 32px by 32px like this one:

+ +

Only one max-* contraint

+ + + + +

One max-* and fixed size contraint

+ + + + +

Two max-* contraints

+ + + + +

Both min-* and max-* constrained

+ + + + +

Bad constraints

+ + + + +
+ + diff --git a/test/html/render/img-aspect-ratio-mix.html b/test/html/render/img-aspect-ratio-mix.html new file mode 100644 index 00000000..8adc2867 --- /dev/null +++ b/test/html/render/img-aspect-ratio-mix.html @@ -0,0 +1,41 @@ + + + + Test image aspect ratio while constrained + + + +
+

All images should be 32px by 32px like this one:

+ +

Only one max-* contraint

+ + + + +

One max-* and fixed size contraint

+ + + + +

Two max-* contraints

+ + + + +

Both min-* and max-* constrained

+ + + + +

Bad constraints

+ + + + +
+ + diff --git a/test/html/render/img-aspect-ratio-mix.ref.html b/test/html/render/img-aspect-ratio-mix.ref.html new file mode 100644 index 00000000..464767dd --- /dev/null +++ b/test/html/render/img-aspect-ratio-mix.ref.html @@ -0,0 +1,41 @@ + + + + Test image aspect ratio while constrained + + + +
+

All images should be 32px by 32px like this one:

+ +

Only one max-* contraint

+ + + + +

One max-* and fixed size contraint

+ + + + +

Two max-* contraints

+ + + + +

Both min-* and max-* constrained

+ + + + +

Bad constraints

+ + + + +
+ + diff --git a/test/html/render/img-max-bounds.html b/test/html/render/img-max-bounds.html deleted file mode 100644 index 8adc2867..00000000 --- a/test/html/render/img-max-bounds.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - Test image aspect ratio while constrained - - - -
-

All images should be 32px by 32px like this one:

- -

Only one max-* contraint

- - - - -

One max-* and fixed size contraint

- - - - -

Two max-* contraints

- - - - -

Both min-* and max-* constrained

- - - - -

Bad constraints

- - - - -
- - diff --git a/test/html/render/img-max-bounds.ref.html b/test/html/render/img-max-bounds.ref.html deleted file mode 100644 index 464767dd..00000000 --- a/test/html/render/img-max-bounds.ref.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - Test image aspect ratio while constrained - - - -
-

All images should be 32px by 32px like this one:

- -

Only one max-* contraint

- - - - -

One max-* and fixed size contraint

- - - - -

Two max-* contraints

- - - - -

Both min-* and max-* constrained

- - - - -

Bad constraints

- - - - -
- - -- cgit v1.2.3