package com.vaadin.tests.themes.valo; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractTestUI; import com.vaadin.ui.Button; import com.vaadin.ui.Notification; /** * Test UI for H1 and P elements styles. * * @author Vaadin Ltd */ public class NotificationStyle extends AbstractTestUI { @Override protected void setup(VaadinRequest request) { Button button = new Button("Show notification with h1", event -> { Notification notification = new Notification("
Caption
", "tested p
Caption
", "Description texttested p text
"); notification.setHtmlContentAllowed(true); notification.setDelayMsec(50000); notification.show(getPage()); }); addComponent(button); } @Override protected Integer getTicketNumber() { return 14872; } @Override protected String getTestDescription() { return "Notification styles should be scoped more eagerly."; } }