blob: f38f8a03504970367eab8b970e11319af092fd18 (
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
31
32
33
34
35
36
|
package com.vaadin.tests.debug;
import org.atmosphere.util.Version;
import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.communication.PushMode;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Label;
/**
* Test UI for PUSH version string in debug window.
*
* @author Vaadin Ltd
*/
public class PushVersionInfo extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
if (request.getParameter("enablePush") != null) {
getPushConfiguration().setPushMode(PushMode.AUTOMATIC);
Label label = new Label(Version.getRawVersion());
label.addStyleName("atmosphere-version");
addComponent(label);
}
}
@Override
protected String getTestDescription() {
return "Debug window shows Push version in info Tab.";
}
@Override
protected Integer getTicketNumber() {
return 14904;
}
}
|