From b597d65205d4a16d2423b9ccd7b29aa70e6e8579 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Wed, 28 Jan 2009 11:32:10 +0000 Subject: [PATCH] Updated test. Test descriptions can now include HTML. svn changeset:6669/svn branch:trunk --- src/com/itmill/toolkit/tests/components/TestBase.java | 2 +- .../toolkit/tests/components/combobox/ComboBoxLargeIcons.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/itmill/toolkit/tests/components/TestBase.java b/src/com/itmill/toolkit/tests/components/TestBase.java index 7efbebd399..c6352aa276 100644 --- a/src/com/itmill/toolkit/tests/components/TestBase.java +++ b/src/com/itmill/toolkit/tests/components/TestBase.java @@ -16,7 +16,7 @@ public abstract class TestBase extends Application { setMainWindow(window); window.getLayout().setSizeFull(); - Label label = new Label(getDescription()); + Label label = new Label(getDescription(), Label.CONTENT_XHTML); label.setWidth("100%"); window.getLayout().addComponent(label); diff --git a/src/com/itmill/toolkit/tests/components/combobox/ComboBoxLargeIcons.java b/src/com/itmill/toolkit/tests/components/combobox/ComboBoxLargeIcons.java index 99ab3817b1..ccb920e918 100644 --- a/src/com/itmill/toolkit/tests/components/combobox/ComboBoxLargeIcons.java +++ b/src/com/itmill/toolkit/tests/components/combobox/ComboBoxLargeIcons.java @@ -17,7 +17,7 @@ public class ComboBoxLargeIcons extends TestBase { @Override protected String getDescription() { - return "All items in the Combobox has large icons. The size of the dropdown should fit the contents, also when changing pages. The size of the shadow behind the dropdown must also be correctly sized. Note that the image URL change for every restart to keep the browser from using cached images."; + return "

All items in the Combobox has large icons. The size of the dropdown should fit the contents, also when changing pages. The height of the dropdown shouldn't exceed the browser's viewport, but fewer items should be visible then.

The size of the shadow behind the dropdown must also be correctly sized.

Note that the image URL change for every restart to keep the browser from using cached images.

"; } @Override -- 2.39.5