From f3fbdeecdbcef5851ff7532d898e27fa455688ef Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 May 2011 20:38:38 -0400 Subject: [PATCH] Add a box-packing reftest This test compares GtkHBox expand handling with GtkGrid+GtkWidget::hexpand, to ensure that replacing GtkHBox by GtkGrid works as intended. --- tests/reftests/Makefile.am | 5 +- tests/reftests/box-packing.css | 8 ++ tests/reftests/box-packing.ref.ui | 172 ++++++++++++++++++++++++ tests/reftests/box-packing.ui | 208 ++++++++++++++++++++++++++++++ 4 files changed, 392 insertions(+), 1 deletion(-) create mode 100644 tests/reftests/box-packing.css create mode 100644 tests/reftests/box-packing.ref.ui create mode 100644 tests/reftests/box-packing.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 434da54be..79ca717d3 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -41,4 +41,7 @@ EXTRA_DIST += \ quit-mnemonic.ref.ui \ quit-mnemonic.ui \ simpe.ref.png \ - simple.ui + simple.ui \ + box-packing.css \ + box-packing.ref.ui \ + box-packing.ui diff --git a/tests/reftests/box-packing.css b/tests/reftests/box-packing.css new file mode 100644 index 000000000..931366244 --- /dev/null +++ b/tests/reftests/box-packing.css @@ -0,0 +1,8 @@ +#red { + background-color: red; +} + +#green { + background-color: green; +} + diff --git a/tests/reftests/box-packing.ref.ui b/tests/reftests/box-packing.ref.ui new file mode 100644 index 000000000..baf73e625 --- /dev/null +++ b/tests/reftests/box-packing.ref.ui @@ -0,0 +1,172 @@ + + + + + False + 200 + 200 + + + True + False + vertical + + + True + False + + + red + 30 + 30 + True + False + + + False + True + 0 + + + + + green + 30 + 30 + True + False + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + + + red + 30 + 30 + True + False + + + True + True + 0 + + + + + green + 30 + 30 + True + False + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + + + red + 30 + 30 + True + False + + + False + True + 0 + + + + + green + 30 + 30 + True + False + + + True + True + 1 + + + + + False + True + 2 + + + + + True + False + + + red + 30 + 30 + True + False + + + True + True + 0 + + + + + green + 30 + 30 + True + False + + + True + True + 1 + + + + + False + True + 3 + + + + + + diff --git a/tests/reftests/box-packing.ui b/tests/reftests/box-packing.ui new file mode 100644 index 000000000..5fadbd026 --- /dev/null +++ b/tests/reftests/box-packing.ui @@ -0,0 +1,208 @@ + + + + + False + 200 + 200 + + + True + False + vertical + + + True + False + + + red + 30 + 30 + True + False + + + + + + 0 + 0 + 1 + 1 + + + + + green + 30 + 30 + True + False + + + + + + 1 + 0 + 1 + 1 + + + + + False + True + 0 + + + + + True + False + + + red + 30 + 30 + True + False + True + + + + + + 0 + 0 + 1 + 1 + + + + + green + 30 + 30 + True + False + + + + + + 1 + 0 + 1 + 1 + + + + + False + True + 1 + + + + + True + False + + + red + 30 + 30 + True + False + + + + + + 0 + 0 + 1 + 1 + + + + + green + 30 + 30 + True + False + True + + + + + + 1 + 0 + 1 + 1 + + + + + False + True + 2 + + + + + True + False + + + red + 30 + 30 + True + False + True + + + + + + 0 + 0 + 1 + 1 + + + + + green + 30 + 30 + True + False + True + + + + + + 1 + 0 + 1 + 1 + + + + + False + True + 3 + + + + + + -- 2.43.2