summaryrefslogtreecommitdiffstats
path: root/tests/testbench/com
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-26 15:18:35 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-26 16:29:14 +0300
commit3409ee849396b5e54d3d61d06b048a3541426210 (patch)
tree0c45db1c581b456850878525eb057931d9aa6ac4 /tests/testbench/com
parenta1be41f0fcba31c20234b223e36678a8e9a30bf0 (diff)
downloadvaadin-framework-3409ee849396b5e54d3d61d06b048a3541426210.tar.gz
vaadin-framework-3409ee849396b5e54d3d61d06b048a3541426210.zip
Support connector resources in portlets (#9059)
Diffstat (limited to 'tests/testbench/com')
-rw-r--r--tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java9
-rw-r--r--tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css3
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java b/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java
index f0ed0f79cb..c9bcd01092 100644
--- a/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java
+++ b/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java
@@ -19,6 +19,7 @@ import javax.portlet.ResourceResponse;
import javax.portlet.WindowState;
import com.vaadin.Application;
+import com.vaadin.annotations.StyleSheet;
import com.vaadin.terminal.ExternalResource;
import com.vaadin.terminal.gwt.client.ui.label.ContentMode;
import com.vaadin.terminal.gwt.server.PortletApplicationContext2;
@@ -38,7 +39,12 @@ import com.vaadin.ui.Upload.Receiver;
*/
public class JSR286PortletApplication extends Application.LegacyApplication {
- LegacyWindow main = new LegacyWindow();
+ @StyleSheet("PortletConnectorResource.css")
+ public final class LegacyWindowWithStylesheet extends LegacyWindow {
+
+ }
+
+ LegacyWindow main = new LegacyWindowWithStylesheet();
TextField tf = new TextField("Some value");
Label userInfo = new Label();
Link portletEdit = new Link();
@@ -56,6 +62,7 @@ public class JSR286PortletApplication extends Application.LegacyApplication {
Embedded specialNameResourceTest = new Embedded(
"Test ApplicationResources with special names",
new SpecialNameResource(this));
+ specialNameResourceTest.addStyleName("hugeBorder");
main.addComponent(specialNameResourceTest);
userInfo.setCaption("User info");
diff --git a/tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css b/tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css
new file mode 100644
index 0000000000..7338e4708a
--- /dev/null
+++ b/tests/testbench/com/vaadin/tests/integration/PortletConnectorResource.css
@@ -0,0 +1,3 @@
+.hugeBorder {
+ border: 10px solid green;
+} \ No newline at end of file