From bc1a689e555e695bd7d01a8e685741abfb0e6834 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 2 Feb 2012 02:55:05 +0100 Subject: [PATCH] reftests: Add another background-size test This one tests the keywords for the background-size property --- tests/reftests/Makefile.am | 3 + tests/reftests/background-size-keywords.css | 112 ++++++++ .../reftests/background-size-keywords.ref.ui | 243 ++++++++++++++++++ tests/reftests/background-size-keywords.ui | 242 +++++++++++++++++ 4 files changed, 600 insertions(+) create mode 100644 tests/reftests/background-size-keywords.css create mode 100644 tests/reftests/background-size-keywords.ref.ui create mode 100644 tests/reftests/background-size-keywords.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index a7e53c6b75..66bdc3baf2 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -40,6 +40,9 @@ EXTRA_DIST += \ background-size.css \ background-size.ref.ui \ background-size.ui \ + background-size-keywords.css \ + background-size-keywords.ref.ui \ + background-size-keywords.ui \ reference-background-origin.png \ border-color-default.css \ border-color-default.ref.ui \ diff --git a/tests/reftests/background-size-keywords.css b/tests/reftests/background-size-keywords.css new file mode 100644 index 0000000000..5638761408 --- /dev/null +++ b/tests/reftests/background-size-keywords.css @@ -0,0 +1,112 @@ +@import "reset-to-defaults.css"; + +* { + color: black; + text-shadow: 1 1 white; + background-repeat: no-repeat; +} + +#a { + background-image: url("border-image-balls.png"); + background-size: cover; +} + +#reference #a { + background-size: 40px; +} + +#b { + background-image: url("border-image-balls.png"); + background-size: contain; +} + +#reference #b { + background-size: 30px; +} + +#c { + background-image: url("border-image-balls.png"); + background-size: auto; +} + +#reference #c { + background-size: 60px; +} + +#d { + background-image: url("border-image-balls.png"); +} + +#reference #c { + background-size: 60px; +} + +#e { + background-image: url("border-image-ball-red.png"); + background-size: cover; +} + +#reference #e { + background-size: 40px; +} + +#f { + background-image: url("border-image-ball-red.png"); + background-size: contain; +} + +#reference #f { + background-size: 30px; +} + +#g { + background-image: url("border-image-ball-red.png"); + background-size: auto; +} + +#reference #g { + background-size: 20px; +} + +#h { + background-image: url("border-image-ball-red.png"); +} + +#reference #h { + background-size: 20px; +} + +#i { + background-image: url("border-image-3-balls-yellow.png"); + background-size: cover; +} + +#reference #i { + background-size: 90px; +} + +#j { + background-image: url("border-image-3-balls-yellow.png"); + background-size: contain; +} + +#reference #j { + background-size: 40px; +} + +#k { + background-image: url("border-image-3-balls-yellow.png"); + background-size: auto; +} + +#reference #k { + background-size: 60px; +} + +#l { + background-image: url("border-image-3-balls-yellow.png"); +} + +#reference #l { + background-size: 60px; +} diff --git a/tests/reftests/background-size-keywords.ref.ui b/tests/reftests/background-size-keywords.ref.ui new file mode 100644 index 0000000000..e012156a3a --- /dev/null +++ b/tests/reftests/background-size-keywords.ref.ui @@ -0,0 +1,243 @@ + + + + + False + popup + + + True + False + reference + + + A + False + 40 + 30 + True + True + True + False + a + + + 0 + 0 + 1 + 1 + + + + + B + False + 40 + 30 + True + True + True + False + b + + + 1 + 0 + 1 + 1 + + + + + C + False + 40 + 30 + True + True + True + False + c + + + 2 + 0 + 1 + 1 + + + + + D + False + 40 + 30 + True + True + True + False + d + + + 3 + 0 + 1 + 1 + + + + + E + False + 40 + 30 + True + True + True + False + e + + + 0 + 1 + 1 + 1 + + + + + F + False + 40 + 30 + True + True + True + False + f + + + 1 + 1 + 1 + 1 + + + + + G + False + 40 + 30 + True + True + True + False + g + + + 2 + 1 + 1 + 1 + + + + + H + False + 40 + 30 + True + True + True + False + h + + + 3 + 1 + 1 + 1 + + + + + I + False + 40 + 30 + True + True + True + False + i + + + 0 + 2 + 1 + 1 + + + + + J + False + 40 + 30 + True + True + True + False + j + + + 1 + 2 + 1 + 1 + + + + + K + False + 40 + 30 + True + True + True + False + k + + + 2 + 2 + 1 + 1 + + + + + L + False + 40 + 30 + True + True + True + False + l + + + 3 + 2 + 1 + 1 + + + + + + diff --git a/tests/reftests/background-size-keywords.ui b/tests/reftests/background-size-keywords.ui new file mode 100644 index 0000000000..4b7f9cabf4 --- /dev/null +++ b/tests/reftests/background-size-keywords.ui @@ -0,0 +1,242 @@ + + + + + False + popup + + + True + False + + + A + False + 40 + 30 + True + True + True + False + a + + + 0 + 0 + 1 + 1 + + + + + B + False + 40 + 30 + True + True + True + False + b + + + 1 + 0 + 1 + 1 + + + + + C + False + 40 + 30 + True + True + True + False + c + + + 2 + 0 + 1 + 1 + + + + + D + False + 40 + 30 + True + True + True + False + d + + + 3 + 0 + 1 + 1 + + + + + E + False + 40 + 30 + True + True + True + False + e + + + 0 + 1 + 1 + 1 + + + + + F + False + 40 + 30 + True + True + True + False + f + + + 1 + 1 + 1 + 1 + + + + + G + False + 40 + 30 + True + True + True + False + g + + + 2 + 1 + 1 + 1 + + + + + H + False + 40 + 30 + True + True + True + False + h + + + 3 + 1 + 1 + 1 + + + + + I + False + 40 + 30 + True + True + True + False + i + + + 0 + 2 + 1 + 1 + + + + + J + False + 40 + 30 + True + True + True + False + j + + + 1 + 2 + 1 + 1 + + + + + K + False + 40 + 30 + True + True + True + False + k + + + 2 + 2 + 1 + 1 + + + + + L + False + 40 + 30 + True + True + True + False + l + + + 3 + 2 + 1 + 1 + + + + + +