From 42c26abe83d933eb980995044317cc7fb41b8424 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 8 Aug 2012 14:56:13 +0000 Subject: Test for ensuring that overlays can be transparent (not in IE < 9) svn changeset:24124/svn branch:6.8 --- .../notification/SemiTransparentNotification.java | 34 ++++++++++++++++++++++ .../notification/SemitransparentNotification.html | 27 +++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100755 tests/testbench/com/vaadin/tests/components/notification/SemiTransparentNotification.java create mode 100755 tests/testbench/com/vaadin/tests/components/notification/SemitransparentNotification.html (limited to 'tests/testbench') diff --git a/tests/testbench/com/vaadin/tests/components/notification/SemiTransparentNotification.java b/tests/testbench/com/vaadin/tests/components/notification/SemiTransparentNotification.java new file mode 100755 index 0000000000..d252b89aa3 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/notification/SemiTransparentNotification.java @@ -0,0 +1,34 @@ +package com.vaadin.tests.components.notification; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.tests.util.LoremIpsum; +import com.vaadin.ui.Label; +import com.vaadin.ui.Window.Notification; + +public class SemiTransparentNotification extends TestBase { + + @Override + protected void setup() { + Label l = new Label(LoremIpsum.get(10000)); + getLayout().setSizeFull(); + addComponent(l); + getMainWindow() + .showNotification( + new Notification( + "                                                     This should be a
SEMI-TRANSPARENT
notification", + Notification.TYPE_WARNING_MESSAGE)); + } + + @Override + protected String getDescription() { + // TODO Auto-generated method stub + return null; + } + + @Override + protected Integer getTicketNumber() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/tests/testbench/com/vaadin/tests/components/notification/SemitransparentNotification.html b/tests/testbench/com/vaadin/tests/components/notification/SemitransparentNotification.html new file mode 100755 index 0000000000..f125b98ee1 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/notification/SemitransparentNotification.html @@ -0,0 +1,27 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.notification.SemiTransparentNotification
screenCapturesemitransparent-warning
+ + -- cgit v1.2.3