aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests/src
diff options
context:
space:
mode:
authorpatrik <patrik@vaadin.com>2015-04-07 13:31:32 +0300
committerVaadin Code Review <review@vaadin.com>2015-04-07 11:53:09 +0000
commit0f1dcd23a0bffae76fc312d95d7b64bf7861df88 (patch)
tree912b142a7dc7310cff55ee4781daa77b8ed9bac3 /server/tests/src
parenta9a48519ef306db52be20b2d302887ee8783c398 (diff)
downloadvaadin-framework-0f1dcd23a0bffae76fc312d95d7b64bf7861df88.tar.gz
vaadin-framework-0f1dcd23a0bffae76fc312d95d7b64bf7861df88.zip
Enable setResponsive/isReponsive API for AbstractComponent (#17369)
Change-Id: I2fb48bff5e55d3d494d9fa927305447dc0c4d816
Diffstat (limited to 'server/tests/src')
-rw-r--r--server/tests/src/com/vaadin/tests/design/AbstractComponentSetResponsiveTest.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/design/AbstractComponentSetResponsiveTest.java b/server/tests/src/com/vaadin/tests/design/AbstractComponentSetResponsiveTest.java
new file mode 100644
index 0000000000..f7dbd0c97e
--- /dev/null
+++ b/server/tests/src/com/vaadin/tests/design/AbstractComponentSetResponsiveTest.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.design;
+
+import org.junit.Test;
+
+import com.vaadin.tests.design.DeclarativeTestBase;
+import com.vaadin.ui.GridLayout;
+
+public class AbstractComponentSetResponsiveTest extends
+ DeclarativeTestBase<GridLayout> {
+
+ @Test
+ public void testResponsiveFlag() {
+ GridLayout gl = new GridLayout();
+ gl.setResponsive(true);
+
+ String design = "<v-grid-layout responsive='true' />";
+
+ testWrite(design, gl);
+ testRead(design, gl);
+ }
+
+}