From bba9e3e070d1831436731e205d7ca183b9c20d51 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 26 Jun 2010 13:22:58 -0400 Subject: [PATCH] Added test to demonstrate height-for-width tradeoffs in expander labels. --- tests/testheightforwidth.c | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c index 8529f01f30..47038cacf7 100644 --- a/tests/testheightforwidth.c +++ b/tests/testheightforwidth.c @@ -546,6 +546,76 @@ TestInterface interfaces[] = { NULL }, + { + "Wrapping Expander", + "This test demonstrates how the expander label can fill to its natural width " + "and also trade height for width.", + "" + "" + " " + " " + " " + " 500" + " " + " " + " True" + " True" + " " + " " + " True" + " True" + " " + " " + " True" + " More wrapping text to fill the largish content area in the expander " + " True" + " 10" + " " + " " + " " + " " + " " + " " + " " + " " + " True" + " Here is some expander text that wraps" + " True" + " 10" + " " + " " + " " + " " + " " + " " + " " + " " + " False" + " False" + " " + " " + " " + " " + " True" + " static\n" + "text\n" + "here" + " " + " " + " " + " " + " " + " True" + " True" + " " + " " + " " + " " + " " + "", + NULL + }, + { "Ellipsizing Treeview", "Demonstrates how natural size can be shared across treeview columns and renderers.",