diff options
author | Alexey Fansky <alexey.fansky@effective-soft.com> | 2015-04-09 11:09:15 -0700 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-04-10 12:23:10 +0000 |
commit | 817906332a8ba99e8a711067c10282b8cd9a6415 (patch) | |
tree | 6ddac9fcf62c73c584bea4c99aec5a395edcd587 /uitest/src/com/vaadin/tests/components/notification | |
parent | 4217d7bbc8552e822367fac9d7d3cc9ee48821dd (diff) | |
download | vaadin-framework-817906332a8ba99e8a711067c10282b8cd9a6415.tar.gz vaadin-framework-817906332a8ba99e8a711067c10282b8cd9a6415.zip |
Adding a temporary style to VNotification on Chrome >=41 (#17252)
Change-Id: I41c05e8f8487d351035804e0681947956d861479
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/notification')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/notification/ChromeBottomNotification.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/notification/ChromeBottomNotification.java b/uitest/src/com/vaadin/tests/components/notification/ChromeBottomNotification.java new file mode 100644 index 0000000000..0fdc8df360 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/notification/ChromeBottomNotification.java @@ -0,0 +1,33 @@ +package com.vaadin.tests.components.notification; + +import com.vaadin.server.VaadinRequest; +import com.vaadin.shared.Position; +import com.vaadin.tests.components.AbstractTestUI; +import com.vaadin.ui.Button; +import com.vaadin.ui.Notification; + +public class ChromeBottomNotification extends AbstractTestUI { + @Override + protected void setup(VaadinRequest request) { + addButton("Show notification", new Button.ClickListener() { + @Override + public void buttonClick(Button.ClickEvent event) { + Notification notification = new Notification( + "Hello world", + Notification.Type.ERROR_MESSAGE); + notification.setPosition(Position.BOTTOM_CENTER); + notification.show(getPage()); + } + }); + } + + @Override + protected Integer getTicketNumber() { + return 17252; + } + + @Override + public String getDescription() { + return "Bottom notification on Chrome goes up to top"; + } +} |