diff options
author | Denis <denis@vaadin.com> | 2016-12-28 17:29:53 +0200 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2016-12-28 17:29:53 +0200 |
commit | d8aecac1b300c2223bedc65a0040af6bfc8edd44 (patch) | |
tree | 300a804d5aaae3fc06caf45b26b6ab23cbf5e25f /uitest/src/main/java/com/vaadin/v7 | |
parent | 0544d9fb056537159c9d2f4f3b07288c3c60272e (diff) | |
download | vaadin-framework-d8aecac1b300c2223bedc65a0040af6bfc8edd44.tar.gz vaadin-framework-d8aecac1b300c2223bedc65a0040af6bfc8edd44.zip |
Provide a smoke test for a Form.
Fixes vaadin/framework8-issues#585
Diffstat (limited to 'uitest/src/main/java/com/vaadin/v7')
-rw-r--r-- | uitest/src/main/java/com/vaadin/v7/tests/components/form/FormTooltips.java | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/uitest/src/main/java/com/vaadin/v7/tests/components/form/FormTooltips.java b/uitest/src/main/java/com/vaadin/v7/tests/components/form/FormTooltips.java deleted file mode 100644 index 78d26dd7ac..0000000000 --- a/uitest/src/main/java/com/vaadin/v7/tests/components/form/FormTooltips.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2012 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.v7.tests.components.form; - -import java.util.Arrays; - -import com.vaadin.server.UserError; -import com.vaadin.server.VaadinRequest; -import com.vaadin.tests.components.AbstractReindeerTestUI; -import com.vaadin.tests.data.bean.Person; -import com.vaadin.tests.data.bean.Sex; -import com.vaadin.v7.data.util.BeanItem; -import com.vaadin.v7.ui.Form; -import com.vaadin.v7.ui.TextField; - -public class FormTooltips extends AbstractReindeerTestUI { - - @Override - protected void setup(VaadinRequest request) { - final Form form = new Form(); - form.setId("tooltipForm"); - form.setDescription("Some description"); - form.setItemDataSource( - new BeanItem<>( - new Person("foo", "bar", "baz", 12, Sex.MALE, null)), - Arrays.asList(new String[] { "firstName", "lastName", "age" })); - ((TextField) form.getField("firstName")) - .setDescription("Fields own tooltip"); - - form.setComponentError(new UserError("Form error")); - addComponent(form); - - } - - @Override - protected String getTestDescription() { - return "The 'first name' should show its own tooltip, the other fields should show no tooltip"; - } - - @Override - protected Integer getTicketNumber() { - return 9173; - } - -} |