From 7d7212a47fe35e9e61c6a0b5bee7c93a26313eab Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 16 Aug 2024 13:21:34 +0200 Subject: Add more image aspect ratio tests --- test/html/Makefile.am | 2 ++ test/html/render/img-aspect-ratio-absolute.html | 18 ++++++++++ .../html/render/img-aspect-ratio-absolute.ref.html | 18 ++++++++++ test/html/render/img-aspect-ratio-div.html | 40 ++++++++++++++++++++++ test/html/render/img-aspect-ratio-div.ref.html | 40 ++++++++++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 test/html/render/img-aspect-ratio-absolute.html create mode 100644 test/html/render/img-aspect-ratio-absolute.ref.html create mode 100644 test/html/render/img-aspect-ratio-div.html create mode 100644 test/html/render/img-aspect-ratio-div.ref.html (limited to 'test') diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 2585b783..013429f6 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -17,6 +17,8 @@ TESTS = \ render/github-infinite-loop.html \ render/hackernews.html \ render/img-aspect-ratio.html \ + render/img-aspect-ratio-div.html \ + render/img-aspect-ratio-absolute.html \ render/img-max-bounds.html \ render/main-style.html \ render/margin-auto.html \ diff --git a/test/html/render/img-aspect-ratio-absolute.html b/test/html/render/img-aspect-ratio-absolute.html new file mode 100644 index 00000000..49d07d4b --- /dev/null +++ b/test/html/render/img-aspect-ratio-absolute.html @@ -0,0 +1,18 @@ + + + + Test image aspect ratio + + + + + + diff --git a/test/html/render/img-aspect-ratio-absolute.ref.html b/test/html/render/img-aspect-ratio-absolute.ref.html new file mode 100644 index 00000000..42f9945d --- /dev/null +++ b/test/html/render/img-aspect-ratio-absolute.ref.html @@ -0,0 +1,18 @@ + + + + Test image aspect ratio + + + + + + diff --git a/test/html/render/img-aspect-ratio-div.html b/test/html/render/img-aspect-ratio-div.html new file mode 100644 index 00000000..b92a9751 --- /dev/null +++ b/test/html/render/img-aspect-ratio-div.html @@ -0,0 +1,40 @@ + + + + Test image aspect ratio inside an unconstrained div + + + +
+
+ +
+
+ +
+
+ + diff --git a/test/html/render/img-aspect-ratio-div.ref.html b/test/html/render/img-aspect-ratio-div.ref.html new file mode 100644 index 00000000..b4f01c42 --- /dev/null +++ b/test/html/render/img-aspect-ratio-div.ref.html @@ -0,0 +1,40 @@ + + + + Test image aspect ratio inside an unconstrained div + + + +
+
+ +
+
+ +
+
+ + -- cgit v1.2.3