From 6c1133c8857b7a4ea197d5216fa6af8d049b797e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 May 2011 22:21:59 -0400 Subject: [PATCH] Add an alignment property test This test compares GtkAlignment properties and GtkWidget margin and alignment properties. --- tests/reftests/alignment-props.css | 8 ++ tests/reftests/alignment-props.ref.ui | 181 ++++++++++++++++++++++++++ tests/reftests/alignment-props.ui | 137 +++++++++++++++++++ 3 files changed, 326 insertions(+) create mode 100644 tests/reftests/alignment-props.css create mode 100644 tests/reftests/alignment-props.ref.ui create mode 100644 tests/reftests/alignment-props.ui diff --git a/tests/reftests/alignment-props.css b/tests/reftests/alignment-props.css new file mode 100644 index 0000000000..9313662445 --- /dev/null +++ b/tests/reftests/alignment-props.css @@ -0,0 +1,8 @@ +#red { + background-color: red; +} + +#green { + background-color: green; +} + diff --git a/tests/reftests/alignment-props.ref.ui b/tests/reftests/alignment-props.ref.ui new file mode 100644 index 0000000000..7f8c928531 --- /dev/null +++ b/tests/reftests/alignment-props.ref.ui @@ -0,0 +1,181 @@ + + + + + False + popup + False + 300 + 200 + + + True + False + + + True + False + True + True + 0 + 0 + 0 + 0 + + + red + 30 + 30 + True + False + + + + + 0 + 0 + 1 + 1 + + + + + True + False + True + True + 0 + 0 + + + red + 30 + 30 + True + False + + + + + 1 + 0 + 1 + 1 + + + + + True + False + True + True + 1 + 1 + 0 + 0 + + + red + 30 + 30 + True + False + + + + + 2 + 0 + 1 + 1 + + + + + True + False + True + True + 0 + 0 + 10 + 30 + 20 + 40 + + + red + 30 + 30 + True + False + + + + + 0 + 1 + 1 + 1 + + + + + True + False + True + True + 10 + 30 + 20 + 40 + + + red + 30 + 30 + True + False + + + + + 1 + 1 + 1 + 1 + + + + + True + False + True + True + 1 + 1 + 10 + 30 + 20 + 40 + + + red + 30 + 30 + True + False + + + + + 2 + 1 + 1 + 1 + + + + + + diff --git a/tests/reftests/alignment-props.ui b/tests/reftests/alignment-props.ui new file mode 100644 index 0000000000..40415a3661 --- /dev/null +++ b/tests/reftests/alignment-props.ui @@ -0,0 +1,137 @@ + + + + + False + popup + False + 300 + 200 + + + True + False + + + red + 30 + 30 + True + False + True + True + start + start + + + 0 + 0 + 1 + 1 + + + + + red + 30 + 30 + True + False + True + True + center + center + + + 1 + 0 + 1 + 1 + + + + + red + 30 + 30 + True + False + True + True + end + end + + + 2 + 0 + 1 + 1 + + + + + red + 30 + 30 + True + False + True + True + 10 + 30 + 20 + 40 + + + 0 + 1 + 1 + 1 + + + + + red + 30 + 30 + True + False + True + True + 10 + 30 + 20 + 40 + + + 1 + 1 + 1 + 1 + + + + + red + 30 + 30 + True + False + True + True + 10 + 30 + 20 + 40 + + + 2 + 1 + 1 + 1 + + + + + +