blob: 88b3a9b9f4d023538bddf95422ec4938c68aacc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package com.vaadin.tests.application;
import com.vaadin.annotations.PreserveOnRefresh;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Label;
@PreserveOnRefresh
public class RefreshStatePreserveTitle extends AbstractTestUI {
private Log log = new Log(5);
@Override
protected void setup(VaadinRequest request) {
getPage().setTitle("TEST");
addComponent(new Label(
"Refresh the page and observe that window title 'TEST' is lost."));
}
@Override
protected String getTestDescription() {
return "Refreshing the browser window should preserve the window title";
}
@Override
protected Integer getTicketNumber() {
return Integer.valueOf(11054);
}
}
|