summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-12 11:35:47 +0300
committerArtur Signell <artur@vaadin.com>2012-09-12 15:18:25 +0300
commit6fc6ae8b4aa1b45f2b5c46f4e6c98574298e6472 (patch)
tree778bc1dc3589c0499f11ea057fa2521964f4ebb8
parent175dea363bdb623c57e6d3af81c4ae5b50b214b2 (diff)
downloadvaadin-framework-6fc6ae8b4aa1b45f2b5c46f4e6c98574298e6472.tar.gz
vaadin-framework-6fc6ae8b4aa1b45f2b5c46f4e6c98574298e6472.zip
Notification should be HTML
-rwxr-xr-xuitest/src/com/vaadin/tests/components/notification/SemiTransparentNotification.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/components/notification/SemiTransparentNotification.java b/uitest/src/com/vaadin/tests/components/notification/SemiTransparentNotification.java
index 1745c11982..3e3d844956 100755
--- a/uitest/src/com/vaadin/tests/components/notification/SemiTransparentNotification.java
+++ b/uitest/src/com/vaadin/tests/components/notification/SemiTransparentNotification.java
@@ -1,9 +1,11 @@
package com.vaadin.tests.components.notification;
+import com.vaadin.server.Page;
import com.vaadin.tests.components.TestBase;
import com.vaadin.tests.util.LoremIpsum;
import com.vaadin.ui.Label;
import com.vaadin.ui.Notification;
+import com.vaadin.ui.Notification.Type;
public class SemiTransparentNotification extends TestBase {
@@ -12,9 +14,12 @@ public class SemiTransparentNotification extends TestBase {
Label l = new Label(LoremIpsum.get(10000));
getLayout().setSizeFull();
addComponent(l);
- Notification
- .show("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This should be a <br/><b>SEMI-TRANSPARENT</b><br/> notification",
- Notification.TYPE_WARNING_MESSAGE);
+
+ Notification n = new Notification(
+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This should be a <br/><b>SEMI-TRANSPARENT</b><br/> notification",
+ Type.WARNING_MESSAGE);
+ n.setHtmlContentAllowed(true);
+ n.show(Page.getCurrent());
}
@Override