diff options
| author | Mélanie Bats | 2016-07-05 12:16:41 +0000 |
|---|---|---|
| committer | Pierre-Charles David | 2016-07-05 15:01:03 +0000 |
| commit | a625f9ca427957268a733f479c43379f243ef92d (patch) | |
| tree | c051b788afeab05658e462a9c0124db27568ee1e | |
| parent | 8ec525bae2def3492abb4daaef2d1405f1274396 (diff) | |
| download | org.eclipse.sirius-a625f9ca427957268a733f479c43379f243ef92d.tar.gz org.eclipse.sirius-a625f9ca427957268a733f479c43379f243ef92d.tar.xz org.eclipse.sirius-a625f9ca427957268a733f479c43379f243ef92d.zip | |
[497248] Properties view RCPTT tests
Contribute tests and/or tests data for the:
* widget
* button
* text
* checkbox
* layout
* hyperlink
* label
* radio
* reference
* select
* validation
Bug: 497248
Change-Id: I81529bdc9e5460417f4f3aa98d8b4bc82e3d911b
Signed-off-by: Mélanie Bats <melanie.bats@obeo.fr>
124 files changed, 5547 insertions, 603 deletions
diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign index cfaad40330..f24859951e 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign @@ -46,51 +46,6 @@ buttonLabelExpression=""/> <controls xsi:type="properties:ButtonDescription" - labelExpression="Style Button" - helpExpression="" - isEnabledExpression="" - buttonLabelExpression="Label"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </controls> - <controls - xsi:type="properties:ButtonDescription" - labelExpression="Conditional Style Button" - helpExpression="" - isEnabledExpression="" - buttonLabelExpression="Label"> - <conditionalStyles - preconditionExpression="aql:true"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </conditionalStyles> - </controls> - <controls - xsi:type="properties:ButtonDescription" labelExpression="Disable Button" helpExpression="" isEnabledExpression="aql:false" diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign index 268a006631..0c4f9b85d9 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign @@ -32,47 +32,6 @@ </controls> <controls xsi:type="properties:CheckboxDescription" - labelExpression="Style Checkbox" - valueExpression="aql:self.booleanAttribute"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </controls> - <controls - xsi:type="properties:CheckboxDescription" - labelExpression="Conditional Style Checkbox" - valueExpression="aql:self.booleanAttribute"> - <conditionalStyles - preconditionExpression="aql:true"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </conditionalStyles> - </controls> - <controls - xsi:type="properties:CheckboxDescription" labelExpression="Disable Checkbox" isEnabledExpression="aql:false" valueExpression="aql:self.booleanAttribute"/> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/.classpath new file mode 100644 index 0000000000..39810b7d6c --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/.project new file mode 100644 index 0000000000..2b7ac2bcb1 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.container</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..52d4214dac --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design.container +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design.container;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.container.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/description/PropertiesTests.odesign new file mode 100644 index 0000000000..012d208788 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/description/PropertiesTests.odesign @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsContainer"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Container" + groups="//@extensions.0/@groups.0"> + <validationSet> + <semanticValidationRules + level="ERROR" + message="Page semantic error message..."> + <audits + auditExpression="aql:false"/> + </semanticValidationRules> + </validationSet> + </pages> + <groups + identifier="Container" + labelExpression="Container" + domainClass=""> + <controls + xsi:type="properties:ContainerDescription" + identifier="ContainerHorizontal"> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area 1" + valueExpression="aql:self.name"/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area 2" + valueExpression="aql:self.name"/> + <layout + xsi:type="properties:FillLayoutDescription" + orientation="HORIZONTAL"/> + </controls> + <controls + xsi:type="properties:ContainerDescription" + identifier="ContainerHorizontal"> + <controls + xsi:type="properties:ContainerDescription" + identifier=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="Text"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression="aql:true"/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Text area"/> + <layout + xsi:type="properties:FillLayoutDescription"/> + </controls> + <controls + xsi:type="properties:ContainerDescription" + identifier=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="Text"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression="aql:true"/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Text area"/> + <layout + xsi:type="properties:FillLayoutDescription"/> + </controls> + <layout + xsi:type="properties:FillLayoutDescription" + orientation="HORIZONTAL"/> + </controls> + <controls + xsi:type="properties:ContainerDescription"> + <controls + xsi:type="properties:DynamicMappingFor" + iterator="iterator" + domainClassExpression="aql:Sequence{'public','private','protected','final','seeled','abstract','case'}"> + <ifs + predicateExpression="aql:true"> + <widget + xsi:type="properties:CheckboxDescription" + labelExpression="aql:iterator" + valueExpression=""/> + </ifs> + </controls> + <layout + xsi:type="properties:GridLayoutDescription" + numberOfColumns="5"/> + </controls> + <controls + xsi:type="properties:ContainerDescription"> + <controls + xsi:type="properties:ContainerDescription" + identifier=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="Text"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression="aql:true"/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Text area"/> + <layout + xsi:type="properties:FillLayoutDescription"/> + </controls> + <controls + xsi:type="properties:ContainerDescription" + identifier=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="Text"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression="aql:true"/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Text area"/> + <layout + xsi:type="properties:FillLayoutDescription"/> + </controls> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Text area"/> + <controls + xsi:type="properties:ContainerDescription" + identifier=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="Text"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression="aql:true"/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Text area"/> + <layout + xsi:type="properties:FillLayoutDescription"/> + </controls> + <layout + xsi:type="properties:GridLayoutDescription" + numberOfColumns="3"/> + </controls> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/plugin.xml new file mode 100644 index 0000000000..fc25e0ba64 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.container.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/container/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/container/Activator.java new file mode 100644 index 0000000000..0cc72534b4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/container/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * Copyright (c) 2016 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.tests.rcptt.sample.properties.design.container; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.container"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign index ec7d1e17b5..cf4a13bbe0 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign @@ -33,24 +33,80 @@ </controls> <controls xsi:type="properties:HyperlinkDescription" - labelExpression="Style Hyperlink" + labelExpression="Style Hyperlink Font" helpExpression="" valueExpression="aql:self.stringAttribute"> <style - labelFontNameExpression="Times new roman" - labelFontSize="12" + labelFontNameExpression="" fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor + fontSize="12"/> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink Italic" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>italic</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink Bold" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>bold</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink Underline" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>underline</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink Strike" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink Background Color" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink All" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression="Times new roman" + fontSize="12"> <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> @@ -68,27 +124,9 @@ <conditionalStyles preconditionExpression="aql:true"> <style - labelFontNameExpression="Times new roman" - labelFontSize="12" - fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - <backgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <fontFormat>italic</fontFormat> + labelFontNameExpression="" + fontNameExpression=""> <fontFormat>bold</fontFormat> - <fontFormat>underline</fontFormat> - <fontFormat>strike_through</fontFormat> </style> </conditionalStyles> </controls> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign index 25360305b7..0cfae6ef12 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign @@ -22,33 +22,104 @@ xsi:type="properties:LabelDescription" labelExpression="Label" helpExpression="" - bodyExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu venenatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a purus."/> + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at." + isEnabledExpression="aql:false"/> <controls xsi:type="properties:LabelDescription" - labelExpression="Style Label" + identifier="" + labelExpression="Style Label Font" helpExpression="" - bodyExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu venenatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a purus."> + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> <style - labelFontNameExpression="Times new roman" - labelFontSize="12" + labelFontNameExpression="" fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor + fontSize="12"/> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label Italic" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>italic</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label Bold" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>bold</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label Underline" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>underline</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label Strike" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression=""> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label Background Color" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression=""> + <backgroundColor xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label Foreground Color" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression=""> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label All" + helpExpression="" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> + <style + labelFontNameExpression="" + fontNameExpression="Times new roman" + fontSize="12"> <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> <foregroundColor xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + href="environment:/viewpoint#//@systemColors/@entries[name='dark_chocolate']"/> <fontFormat>italic</fontFormat> <fontFormat>bold</fontFormat> <fontFormat>underline</fontFormat> @@ -59,37 +130,24 @@ xsi:type="properties:LabelDescription" labelExpression="Conditional Style Label" helpExpression="" - bodyExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu venenatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a purus."> + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."> <conditionalStyles preconditionExpression="aql:true"> <style - labelFontNameExpression="Times new roman" - labelFontSize="12" - fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - <backgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + labelFontNameExpression="" + fontNameExpression=""> <foregroundColor xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <fontFormat>italic</fontFormat> - <fontFormat>bold</fontFormat> - <fontFormat>underline</fontFormat> - <fontFormat>strike_through</fontFormat> + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> </style> </conditionalStyles> </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Disable Label" + helpExpression="" + isEnabledExpression="aql:false" + valueExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit purus suscipit ante eleifend, eget scelerisque felis malesuada. Sed et orci scelerisque, mattis eros non, scelerisque lacus. Duis at efficitur neque. Proin nec ligula feugiat, molestie leo sed, aliquet mauris. Pellentesque libero augue, sollicitudin vel tortor et, imperdiet tincidunt dui. Duis sapien mauris, fringilla vel sollicitudin a, lobortis vitae leo. Nam sapien ante, auctor ut mauris vitae, posuere congue tortor. Proin scelerisque lectus metus, ac efficitur dolor porttitor non. Duis id finibus orci, eget porta neque. Morbi interdum placerat placerat. Etiam sollicitudin et arcu quis facilisis. Vivamus erat lectus, aliquet eu massa vitae, mollis euismod est. Donec purus purus, hendrerit id tincidunt ut, varius ac magna. Nunc id viverra sem, vitae egestas neque. Maecenas non commodo neque, sit amet ultrices velit. Curabitur consequat ultricies lectus, id efficitur ipsum condimentum at."/> </groups> </extensions> </description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign index 3208a617f6..d9c32db490 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign @@ -34,7 +34,7 @@ labelExpression="Radio" helpExpression="" isEnabledExpression="aql:true" - valueExpression="aql:self.enumAttribute" + valueExpression="aql:propertiestests::TestEnum.getEEnumLiteral(self.enumAttribute.toString())" candidatesExpression="aql:propertiestests::TestEnum.eLiterals" candidateDisplayExpression="aql:candidate.name"> <initialOperation> @@ -47,61 +47,10 @@ <controls xsi:type="properties:RadioDescription" identifier="" - labelExpression="Style Radio" - helpExpression="" - isEnabledExpression="aql:true" - valueExpression="aql:self.enumAttribute" - candidatesExpression="aql:propertiestests::TestEnum.eLiterals" - candidateDisplayExpression="aql:candidate.name"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </controls> - <controls - xsi:type="properties:RadioDescription" - identifier="" - labelExpression="Conditional Style Radio" - helpExpression="" - isEnabledExpression="aql:true" - valueExpression="aql:self.enumAttribute" - candidatesExpression="aql:propertiestests::TestEnum.eLiterals" - candidateDisplayExpression="aql:candidate.name"> - <conditionalStyles - preconditionExpression="aql:true"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </conditionalStyles> - </controls> - <controls - xsi:type="properties:RadioDescription" - identifier="" labelExpression="Disable Radio" helpExpression="" isEnabledExpression="aql:false" - valueExpression="aql:self.enumAttribute" + valueExpression="aql:propertiestests::TestEnum.getEEnumLiteral(self.enumAttribute.toString())" candidatesExpression="aql:propertiestests::TestEnum.eLiterals" candidateDisplayExpression="aql:candidate.name"/> </groups> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign index 80eafdb2b7..7689b93469 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign @@ -23,7 +23,7 @@ domainClass=""> <controls xsi:type="properties:ReferenceDescription" - labelExpression="Mono containment ref" + labelExpression="Default With Actions" helpExpression="" valueExpression="aql:self.containmentReference" displayExpression="aql:self.stringAttribute"> @@ -57,7 +57,7 @@ </controls> <controls xsi:type="properties:ReferenceDescription" - labelExpression="Mono containment ref" + labelExpression="Hyperlink Without Action" helpExpression="" valueExpression="aql:self.containmentReference" displayExpression="aql:self.stringAttribute"> @@ -70,9 +70,10 @@ </controls> <controls xsi:type="properties:ReferenceDescription" - labelExpression="Mono ref" + labelExpression="Multi With Actions" helpExpression="" - valueExpression="aql:self.reference" + multiple="true" + valueExpression="aql:self.containmentReferences" displayExpression="aql:self.stringAttribute"> <actions labelExpression="Action1"> @@ -95,11 +96,25 @@ </controls> <controls xsi:type="properties:ReferenceDescription" - labelExpression="Multi containment ref" + labelExpression="Multi With OnClick Without Action" helpExpression="" multiple="true" valueExpression="aql:self.containmentReferences" displayExpression="aql:self.stringAttribute"> + <onClickOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="ClickedOnTable"/> + </onClickOperation> + </controls> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Disable Default With Actions" + helpExpression="" + isEnabledExpression="aql:false" + valueExpression="aql:self.containmentReference" + displayExpression="aql:self.stringAttribute"> <actions labelExpression="Action1"> <initialOperation> @@ -118,24 +133,21 @@ valueExpression="Action2"/> </initialOperation> </actions> + <actions + labelExpression=""> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="NoLabelAction"/> + </initialOperation> + </actions> </controls> <controls xsi:type="properties:ReferenceDescription" - labelExpression="Mono without action" - helpExpression="" - valueExpression="aql:self.containmentReference" - displayExpression="aql:self.stringAttribute"/> - <controls - xsi:type="properties:ReferenceDescription" - labelExpression="Multi without action" - helpExpression="" - multiple="true" - valueExpression="aql:self.containmentReferences" - displayExpression="aql:self.stringAttribute"/> - <controls - xsi:type="properties:ReferenceDescription" - labelExpression="Multi containment ref" + labelExpression="Disable Multi With Actions" helpExpression="" + isEnabledExpression="aql:false" multiple="true" valueExpression="aql:self.containmentReferences" displayExpression="aql:self.stringAttribute"> @@ -148,6 +160,15 @@ valueExpression="Action1"/> </initialOperation> </actions> + <actions + labelExpression="Action2"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action2"/> + </initialOperation> + </actions> </controls> </groups> </extensions> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign index 6ee8ab18bd..174dabd271 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign @@ -45,55 +45,6 @@ </controls> <controls xsi:type="properties:SelectDescription" - labelExpression="Style Select" - helpExpression="" - isEnabledExpression="aql:true" - valueExpression="aql:self.reference" - candidatesExpression="aql:self.eResource().getContents().eAllContents()" - candidateDisplayExpression="aql:candidate.stringAttribute"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </controls> - <controls - xsi:type="properties:SelectDescription" - labelExpression="Conditional Style Select" - helpExpression="" - isEnabledExpression="aql:true" - valueExpression="aql:self.reference" - candidatesExpression="aql:self.eResource().getContents().eAllContents()" - candidateDisplayExpression="aql:candidate.stringAttribute"> - <conditionalStyles - preconditionExpression="aql:true"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - </style> - </conditionalStyles> - </controls> - <controls - xsi:type="properties:SelectDescription" labelExpression="Disable Select" helpExpression="" isEnabledExpression="aql:false" diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign index 5a23ab165a..180d840b1c 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign @@ -1,167 +1,124 @@ <?xml version="1.0" encoding="UTF-8"?> -<description:Group - xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" - xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" - xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" - name="PropertiesTests" - version="11.0.0.201601261200"> - <ownedViewpoints - name="PropertiesTestsText"/> - <extensions - xsi:type="properties:ViewExtensionDescription"> - <pages identifier="" - labelExpression="Text" - groups="//@extensions.0/@groups.0"/> - <groups - identifier="Text" - labelExpression="Text" - domainClass=""> - <controls - xsi:type="properties:TextDescription" - labelExpression="Text" - valueExpression="aql:self.stringAttribute"> +<description:Group xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" name="PropertiesTests" version="11.0.0.201601261200"> + <ownedViewpoints name="PropertiesTestsText"/> + <extensions xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" labelExpression="Text" groups="//@extensions.0/@groups.0"/> + <pages identifier="" labelExpression="TextArea" groups="//@extensions.0/@groups.1"/> + <groups identifier="Properties" labelExpression="Properties" domainClass=""> + <controls xsi:type="properties:TextDescription" identifier="Name" labelExpression="Name :" helpExpression="Help message" valueExpression="aql:self.stringAttribute"> <initialOperation> - <firstModelOperations - xsi:type="tool:SetValue" - featureName="stringAttribute" - valueExpression="aql:newValue"/> + <firstModelOperations xsi:type="tool:SetValue" featureName="stringAttribute" valueExpression="aql:newValue"/> </initialOperation> </controls> - <controls - xsi:type="properties:TextDescription" - identifier="" - labelExpression="Style Text" - valueExpression="aql:self.stringAttribute"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12" - fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - <backgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <foregroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Font" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression="Times new roman" fontSize="12"/> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Italic" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <fontFormat>italic</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Bold" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <fontFormat>bold</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Underline" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <fontFormat>underline</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Strike" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Background Color" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text Foreground Color" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls xsi:type="properties:TextDescription" identifier="" labelExpression="Style Text All" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression="Times new roman" fontSize="12"> + <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='dark_chocolate']"/> <fontFormat>italic</fontFormat> <fontFormat>bold</fontFormat> <fontFormat>underline</fontFormat> <fontFormat>strike_through</fontFormat> </style> </controls> - <controls - xsi:type="properties:TextDescription" - labelExpression="Conditional Style Text" - valueExpression="aql:self.stringAttribute"> - <conditionalStyles - preconditionExpression="aql:true"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12" - fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - <backgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> - <foregroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <fontFormat>italic</fontFormat> - <fontFormat>bold</fontFormat> - <fontFormat>underline</fontFormat> - <fontFormat>strike_through</fontFormat> + <controls xsi:type="properties:TextDescription" labelExpression="Conditional Style Text" helpExpression="Help" valueExpression="aql:self.stringAttribute"> + <conditionalStyles preconditionExpression="aql:true"> + <style labelFontNameExpression="" fontNameExpression=""> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> </style> </conditionalStyles> </controls> - <controls - xsi:type="properties:TextDescription" - labelExpression="Disable Text" - isEnabledExpression="aql:false" - valueExpression="aql:self.stringAttribute"/> - <controls - xsi:type="properties:TextAreaDescription" - identifier="" - labelExpression="Text area" - valueExpression="aql:self.stringAttribute"> + <controls xsi:type="properties:TextDescription" labelExpression="Disable Text" isEnabledExpression="aql:false" valueExpression="aql:self.stringAttribute"/> + </groups> + <groups identifier="TextArea" labelExpression="TextArea" domainClass=""> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Text Area" valueExpression="Et quoniam inedia gravi adflictabantur, locum petivere Paleas nomine, vergentem in mare, valido muro firmatum, ubi conduntur nunc usque commeatus distribui militibus omne latus Isauriae defendentibus adsueti. circumstetere igitur hoc munimentum per triduum et trinoctium et cum neque adclivitas ipsa sine discrimine adiri letali, nec cuniculis quicquam geri posset, nec procederet ullum obsidionale commentum, maesti excedunt postrema vi subigente maiora viribus adgressuri.

Quibus occurrere bene pertinax miles explicatis ordinibus parans hastisque feriens scuta qui habitus iram pugnantium concitat et dolorem proximos iam gestu terrebat sed eum in certamen alacriter consurgentem revocavere ductores rati intempestivum anceps subire certamen cum haut longe muri distarent, quorum tutela securitas poterat in solido locari cunctorum."> <initialOperation> - <firstModelOperations - xsi:type="tool:SetValue" - featureName="stringAttribute" - valueExpression="aql:newValue"/> + <firstModelOperations xsi:type="tool:SetValue" featureName="stringAttribute" valueExpression="aql:newValue"/> </initialOperation> </controls> - <controls - xsi:type="properties:TextAreaDescription" - identifier="" - labelExpression="Style Text area" - valueExpression="aql:self.stringAttribute"> - <style - labelFontNameExpression="Times new roman" - labelFontSize="12" - fontNameExpression="Times new roman" - fontSize="12"> - <labelBackgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> - <labelForegroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <labelFontFormat>italic</labelFontFormat> - <labelFontFormat>bold</labelFontFormat> - <labelFontFormat>underline</labelFontFormat> - <labelFontFormat>strike_through</labelFontFormat> - <backgroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> - <foregroundColor - xsi:type="description:SystemColor" - href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Font" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression="Times new roman" fontSize="12"/> + </controls> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Italic" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> <fontFormat>italic</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Bold" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> <fontFormat>bold</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Underline" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> <fontFormat>underline</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Strike" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> <fontFormat>strike_through</fontFormat> </style> </controls> - <controls - xsi:type="properties:TextAreaDescription" - labelExpression="Conditional Style Text area" - valueExpression="aql:self.stringAttribute"> - <initialOperation> - <firstModelOperations - xsi:type="tool:SetValue" - featureName="stringAttribute" - valueExpression="aql:newValue"/> - </initialOperation> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Background Color" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area Foreground Color" isEnabledExpression="" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression=""> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Style Text Area All" valueExpression="aql:self.stringAttribute"> + <style labelFontNameExpression="" fontNameExpression="Times new roman" fontSize="12"> + <backgroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='dark_chocolate']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls xsi:type="properties:TextAreaDescription" labelExpression="Conditional Style Text Area" valueExpression="aql:self.stringAttribute"> + <conditionalStyles preconditionExpression="aql:true"> + <style labelFontNameExpression="" fontNameExpression=""> + <foregroundColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + </style> + </conditionalStyles> </controls> - <controls - xsi:type="properties:TextAreaDescription" - identifier="" - labelExpression="Disable Text area" - isEnabledExpression="aql:false" - valueExpression="aql:self.stringAttribute"/> + <controls xsi:type="properties:TextAreaDescription" identifier="" labelExpression="Disable Text area" isEnabledExpression="aql:false" valueExpression="aql:self.stringAttribute"/> </groups> </extensions> </description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/.classpath new file mode 100644 index 0000000000..39810b7d6c --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/.project new file mode 100644 index 0000000000..ac52d80982 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.validation</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1b0f9b894f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design.validation +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design.validation;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.validation.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/description/PropertiesTests.odesign new file mode 100644 index 0000000000..862ce106d4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/description/PropertiesTests.odesign @@ -0,0 +1,276 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsValidation"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Validation" + groups="//@extensions.0/@groups.0"> + <validationSet> + <semanticValidationRules + level="ERROR" + message="Page semantic error message..."> + <audits + auditExpression="aql:false"/> + </semanticValidationRules> + </validationSet> + </pages> + <groups + identifier="Validation" + labelExpression="Validation" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text Info" + labelExpression="Text Info" + helpExpression="" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:TextDescription" + identifier="Text Warning" + labelExpression="Text Warning" + helpExpression="" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:TextDescription" + identifier="Text Error" + labelExpression="Text Error" + helpExpression="" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:TextDescription" + identifier="Text InfoWarningError" + labelExpression="Text InfoWarningError" + helpExpression="Help message" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:TextDescription" + identifier="Text Style Error" + labelExpression="Text Style Error" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls + xsi:type="properties:ButtonDescription" + identifier="Button Error" + labelExpression="Button Error" + buttonLabelExpression="Label"/> + <controls + xsi:type="properties:LabelDescription" + identifier="Label Error" + labelExpression="Label Error" + valueExpression="Label"/> + <controls + xsi:type="properties:CheckboxDescription" + identifier="Checkbox Error" + labelExpression="Checkbox Error" + helpExpression="" + valueExpression="aql:self.booleanAttribute"/> + <controls + xsi:type="properties:SelectDescription" + identifier="Select Error" + labelExpression="Select Error" + valueExpression="aql:self.reference" + candidatesExpression="aql:self.eResource().getContents().eAllContents()" + candidateDisplayExpression="aql:candidate.stringAttribute"/> + <controls + xsi:type="properties:TextAreaDescription" + identifier="Text area Error" + labelExpression="Text area Error" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:RadioDescription" + identifier="Radio Error" + labelExpression="Radio Error" + valueExpression="aql:propertiestests::TestEnum.getEEnumLiteral(self.enumAttribute.toString())" + candidatesExpression="aql:propertiestests::TestEnum.eLiterals" + candidateDisplayExpression="aql:candidate.name"/> + <controls + xsi:type="properties:ReferenceDescription" + identifier="Reference Error" + labelExpression="Reference Error" + helpExpression="" + valueExpression="aql:self.containmentReference" + displayExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:ReferenceDescription" + identifier="Multi Reference Error" + labelExpression="Multi Reference Error" + helpExpression="" + multiple="true" + valueExpression="aql:self.containmentReferences" + displayExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:HyperlinkDescription" + identifier="Hyperlink Error" + labelExpression="Hyperlink Error" + valueExpression="Hyperlink"/> + <controls + xsi:type="properties:DynamicMappingFor" + iterator="eStructuralFeature" + domainClassExpression="aql:self.eClass().eAllStructuralFeatures"> + <ifs + predicateExpression="aql:eStructuralFeature.eType.instanceTypeName = 'java.lang.String' and not(eStructuralFeature.many)"> + <widget + xsi:type="properties:TextDescription" + identifier="Dynamic mapping Error" + labelExpression="Dynamic mapping Error" + helpExpression="" + valueExpression="aql:self.eGet(eStructuralFeature)"/> + </ifs> + </controls> + <validationSet> + <semanticValidationRules + label="" + level="ERROR" + message="Group semantic error message..." + targetClass=""> + <audits + auditExpression="aql:false"/> + </semanticValidationRules> + <propertyValidationRules + message="Text info message..." + targets="//@extensions.0/@groups.0/@controls.0 //@extensions.0/@groups.0/@controls.4"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="WARNING" + message="Text warning message..." + targets="//@extensions.0/@groups.0/@controls.1"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Text error message..." + targets="//@extensions.0/@groups.0/@controls.2"> + <audits + auditExpression="aql:false"/> + <fixes + name="Fix1"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="QuickFix1"/> + </initialOperation> + </fixes> + <fixes + name="Fix2"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="QuickFix2"/> + </initialOperation> + </fixes> + </propertyValidationRules> + <propertyValidationRules + level="WARNING" + message="Text info/warning/error message..." + targets="//@extensions.0/@groups.0/@controls.3"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Text info/warning/error message..." + targets="//@extensions.0/@groups.0/@controls.3"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + message="Text info/warning/error message..." + targets="//@extensions.0/@groups.0/@controls.3"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Button error message..." + targets="//@extensions.0/@groups.0/@controls.5"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Label info message..." + targets="//@extensions.0/@groups.0/@controls.6"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Checkbox error message..." + targets="//@extensions.0/@groups.0/@controls.7"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Select error message..." + targets="//@extensions.0/@groups.0/@controls.8"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Text area error message..." + targets="//@extensions.0/@groups.0/@controls.9"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Radio error message..." + targets="//@extensions.0/@groups.0/@controls.10"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Reference error message..." + targets="//@extensions.0/@groups.0/@controls.11"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Multi Reference error message..." + targets="//@extensions.0/@groups.0/@controls.12"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Hyperlink error message..." + targets="//@extensions.0/@groups.0/@controls.13"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + <propertyValidationRules + level="ERROR" + message="Dynamic mapping error message..." + targets="//@extensions.0/@groups.0/@controls.14/@ifs.0/@widget"> + <audits + auditExpression="aql:false"/> + </propertyValidationRules> + </validationSet> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/plugin.xml new file mode 100644 index 0000000000..1e82f8ff84 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.validation.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/validation/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/validation/Activator.java new file mode 100644 index 0000000000..7d86fe6012 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/validation/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * Copyright (c) 2016 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.tests.rcptt.sample.properties.design.validation; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.validation"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/.classpath new file mode 100644 index 0000000000..39810b7d6c --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/.project new file mode 100644 index 0000000000..9cd042dca6 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.widget</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..a21429138d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design.widget +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design.widget;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.widget.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/description/PropertiesTests.odesign new file mode 100644 index 0000000000..d04dc907ec --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/description/PropertiesTests.odesign @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsWidget"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Widget" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Widget" + labelExpression="Widget" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Font" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression=""/> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Italic" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelFontFormat>italic</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Bold" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelFontFormat>bold</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Underline" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelFontFormat>underline</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Strike" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Background Color" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text Foreground Color" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text All" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression=""> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_chocolate']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + labelExpression="Conditional Style Text" + valueExpression="aql:self.stringAttribute"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="" + fontNameExpression=""> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + </style> + </conditionalStyles> + </controls> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/plugin.xml new file mode 100644 index 0000000000..4788fc5cd4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.widget.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/widget/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/widget/Activator.java new file mode 100644 index 0000000000..e4e6e1ae9d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/widget/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * Copyright (c) 2016 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.tests.rcptt.sample.properties.design.widget; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.widget"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests index fe133624b1..c49dc47f52 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <propertiestests:TestRoot xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:propertiestests="http://www.eclipse.org/sirius/tests/properties/1.0.0"> - <elements stringAttribute="Element1" reference="//@elements.1" references="//@elements.1 //@elements.2"> - <stringAttributes>Attribute1</stringAttributes> - <stringAttributes>Attribute2</stringAttributes> - <stringAttributes>Attribute3</stringAttributes> + <elements stringAttribute="Element1" intAttribute="1" reference="//@elements.1" references="//@elements.1 //@elements.2" charAttribute="99" dateAttribute="2016-05-24T00:00:00.000+0200" doubleAttribute="42.42" floatAttribute="42.42" longAttribute="1" shortAttribute="42"> + <stringAttributes>Element1</stringAttributes> + <stringAttributes>Element2</stringAttributes> + <stringAttributes>Element3</stringAttributes> <intAttributes>1</intAttributes> <intAttributes>2</intAttributes> <intAttributes>3</intAttributes> @@ -15,6 +15,24 @@ <containmentReference stringAttribute="Element11"/> <containmentReferences stringAttribute="Element12"/> <containmentReferences stringAttribute="Element13"/> + <charAttributes>97</charAttributes> + <charAttributes>98</charAttributes> + <charAttributes>99</charAttributes> + <dateAttributes>2016-05-24T00:00:00.000+0200</dateAttributes> + <dateAttributes>2016-05-25T00:00:00.000+0200</dateAttributes> + <dateAttributes>2016-05-26T00:00:00.000+0200</dateAttributes> + <doubleAttributes>42.42</doubleAttributes> + <doubleAttributes>43.43</doubleAttributes> + <doubleAttributes>44.44</doubleAttributes> + <floatAttributes>42.42</floatAttributes> + <floatAttributes>43.43</floatAttributes> + <floatAttributes>44.44</floatAttributes> + <longAttributes>1</longAttributes> + <longAttributes>2</longAttributes> + <longAttributes>3</longAttributes> + <shortAttributes>1</shortAttributes> + <shortAttributes>2</shortAttributes> + <shortAttributes>3</shortAttributes> </elements> <elements stringAttribute="Element2"/> <elements stringAttribute="Element3"/> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird index 0de0a56ce0..c08fdc429a 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<viewpoint:DAnalysis xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:propertiestests="http://www.eclipse.org/sirius/tests/properties/1.0.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style" xmi:id="_n4UK4AhuEea_TaWxXuy80g" selectedViews="_VkPb8AiBEeaRvL3xkYbMuw" version="11.0.0.201604141600"> +<viewpoint:DAnalysis xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:propertiestests="http://www.eclipse.org/sirius/tests/properties/1.0.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style" xmi:id="_n4UK4AhuEea_TaWxXuy80g" selectedViews="_VkPb8AiBEeaRvL3xkYbMuw _iLNA0BwnEeajlaFNymgFJw" version="11.0.0.201604141600"> <semanticResources>PropertiesTestsInstance.propertiestests</semanticResources> <ownedViews xmi:type="viewpoint:DView" xmi:id="_VjvFoAiBEeaRvL3xkYbMuw"> <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsText']"/> @@ -135,4 +135,40 @@ <target xmi:type="propertiestests:TestRoot" href="PropertiesTestsInstance.propertiestests#/"/> </ownedRepresentations> </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iLNA0BwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsLabel']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iLsJABwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsHyperlink']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iMFxoBwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsSelect']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iMezMBwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsCheckbox']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iNccgBwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsScreenshot']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iOBEQBwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.group/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsGroup']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iOj20BwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsRadio']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iPRBcBwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsReference']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_iQCdgBwnEeajlaFNymgFJw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsButton']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_uU-rMCJrEeatLuh0gpprQg"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.validation/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsValidation']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_uWypECJrEeatLuh0gpprQg"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.widget/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsWidget']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="__F9wkCJ1EeaQIb7FemjCbw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.container/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsContainer']"/> + </ownedViews> </viewpoint:DAnalysis> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/plugin.xml index fc04647043..39c35d3b24 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/plugin.xml +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/plugin.xml @@ -14,6 +14,50 @@ name="org.eclipse.sirius.tests.rcptt.properties.design.text"> </projectDescriptor> <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/" + name="org.eclipse.sirius.tests.rcptt.properties.design.button"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/" + name="org.eclipse.sirius.tests.rcptt.properties.design.checkbox"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.container/" + name="org.eclipse.sirius.tests.rcptt.properties.design.container"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/" + name="org.eclipse.sirius.tests.rcptt.properties.design.group"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/" + name="org.eclipse.sirius.tests.rcptt.properties.design.hyperlink"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/" + name="org.eclipse.sirius.tests.rcptt.properties.design.label"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/" + name="org.eclipse.sirius.tests.rcptt.properties.design.radio"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/" + name="org.eclipse.sirius.tests.rcptt.properties.design.reference"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/" + name="org.eclipse.sirius.tests.rcptt.properties.design.select"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.validation/" + name="org.eclipse.sirius.tests.rcptt.properties.design.validation"> + </projectDescriptor> + <projectDescriptor + contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.widget/" + name="org.eclipse.sirius.tests.rcptt.properties.design.widget"> + </projectDescriptor> + <projectDescriptor contentURI="contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/" name="org.eclipse.sirius.tests.rcptt.properties.instance"> </projectDescriptor> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.ecore b/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.ecore index 086e6a4c80..b53b3fa5c1 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.ecore +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.ecore @@ -26,6 +26,30 @@ <eStructuralFeatures xsi:type="ecore:EReference" name="reference" eType="#//TestElement"/> <eStructuralFeatures xsi:type="ecore:EReference" name="references" upperBound="-1" eType="#//TestElement"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="charAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EChar"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="charAttributes" upperBound="-1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EChar"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="dateAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="dateAttributes" upperBound="-1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="doubleAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="doubleAttributes" upperBound="-1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="floatAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="floatAttributes" upperBound="-1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="longAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="longAttributes" upperBound="-1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="shortAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EShort"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="shortAttributes" upperBound="-1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EShort"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="deriveAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" + derived="true"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="transientAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" + transient="true"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="nonChangeableAttribute" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" changeable="false"/> </eClassifiers> <eClassifiers xsi:type="ecore:EEnum" name="TestEnum"> <eLiterals name="Literal1"/> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.genmodel b/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.genmodel index 461b16fbf4..0e6330c15b 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.genmodel +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties/model/propertiestests.genmodel @@ -1,35 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" - xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2016 Obeo.
All rights reserved. This program and the accompanying materials 
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.htm" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2015 Obeo.
All rights reserved. This program and the accompanying materials 
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.htm" modelDirectory="/org.eclipse.sirius.tests.rcptt.properties/src-gen" editDirectory="/org.eclipse.sirius.tests.rcptt.properties.edit/src-gen" editorDirectory="/org.eclipse.sirius.tests.rcptt.properties.editor/src-gen" modelPluginID="org.eclipse.sirius.tests.rcptt.properties" modelName="Propertiestests" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" - importerID="org.eclipse.emf.importer.ecore" complianceLevel="7.0" copyrightFields="false" + importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false" operationReflection="true" importOrganizing="true"> <foreignModel>propertiestests.ecore</foreignModel> <genPackages prefix="Propertiestests" basePackage="org.eclipse.sirius.tests.rcptt.properties" disposableProviderFactory="true" ecorePackage="propertiestests.ecore#/"> - <genEnums typeSafeEnumCompatible="false" ecoreEnum="propertiestests.ecore#//TestEnum"> - <genEnumLiterals ecoreEnumLiteral="propertiestests.ecore#//TestEnum/Literal1"/> - <genEnumLiterals ecoreEnumLiteral="propertiestests.ecore#//TestEnum/Literal2"/> - <genEnumLiterals ecoreEnumLiteral="propertiestests.ecore#//TestEnum/Literal3"/> - </genEnums> <genClasses ecoreClass="propertiestests.ecore#//TestRoot"> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference propertiestests.ecore#//TestRoot/elements"/> </genClasses> <genClasses ecoreClass="propertiestests.ecore#//TestElement"> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/stringAttribute"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/stringAttributes"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/intAttribute"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/intAttributes"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/booleanAttribute"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/booleanAttributes"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/enumAttribute"/> - <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/enumAttributes"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference propertiestests.ecore#//TestElement/containmentReference"/> - <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference propertiestests.ecore#//TestElement/containmentReferences"/> - <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference propertiestests.ecore#//TestElement/reference"/> - <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference propertiestests.ecore#//TestElement/references"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute propertiestests.ecore#//TestElement/stringMonoValuedAttribute"/> </genClasses> </genPackages> </genmodel:GenModel> diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetDefault.test new file mode 100644 index 0000000000..d58cbc578b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetDefault.test @@ -0,0 +1,75 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_tKsK0B5kEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: ButtonWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _tSdmwB5kEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 3:43 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the button widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the button viewpoint, +* selects an element in the diagram, +* checks the properties view of a button widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Button | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Button | verify-true +} + +// Check default value +with [get-view Properties | get-section Button | get-button Label] { + get-property enablement | equals true | verify-true + get-property caption | equals Label | verify-true +} + +// Check long label +with [get-view Properties | get-section Button | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals ALongLongLongLabel | verify-true +} + +// Check long value +with [get-view Properties | get-section Button | get-button ALongLongLongLabel] { + get-property enablement | equals true | verify-true + get-property caption | equals ALongLongLongLabel | verify-true +} + + +// Check no label +with [get-view Properties | get-section Button | get-editbox -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "No Label" | verify-true +} + +// Check no value +with [get-view Properties | get-section Button | get-button "..."] { + get-property enablement | equals true | verify-true + get-property caption | equals "..." | verify-true +} + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetDisable.test new file mode 100644 index 0000000000..d49100ae14 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetDisable.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_tKsK0B5kEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: ButtonWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _tSgDAB5kEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 11:04 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the button widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the button viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled button widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label +with [get-view Properties | get-section Button | get-editbox -index 6] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Button" | verify-true +} + +// Check disable value +with [get-view Properties | get-section Button | get-editbox -index 7] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals true | verify-true + get-property text | equals Label | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetOnClick.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetOnClick.test new file mode 100644 index 0000000000..0becca552a --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/ButtonWidgetOnClick.test @@ -0,0 +1,38 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_tKsK0B5kEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: ButtonWidgetOnClick +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _tSh4MB5kEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 11:27 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the button widget onclick action. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the button viewpoint, +* selects an element in the diagram, +* click on the button in the properties view, +* checks the element name is edited in the diagram. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Click on the button +get-view Properties | get-section Button | get-editbox -index 1 | click + +// Check that the label changed in the diagram +get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram | get-edit-part -name ButtonClicked + | get-edit-part -className SquareEditPart | get-figure "0/0" | get-property "getText()" | equals ButtonClicked + | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/SelectButtonViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/SelectButtonViewpoint.ctx new file mode 100644 index 0000000000..82fa561797 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/button/SelectButtonViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectButtonViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _tKsK0B5kEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:27 AM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | check + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetDefault.test new file mode 100644 index 0000000000..e535ba7f97 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetDefault.test @@ -0,0 +1,37 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_kYk7UB5sEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: CheckboxWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _kYolsB5sEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 3:29 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the checkbox widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the checkbox viewpoint, +* selects an element in the diagram, +* checks the properties view of a checkbox widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label and value +with [get-view Properties | get-section Checkbox | get-button Checkbox] { + get-property kind | equals Check | verify-true + get-property "getText()" | equals Checkbox | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetDisable.test new file mode 100644 index 0000000000..218e505334 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetDisable.test @@ -0,0 +1,38 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_kYk7UB5sEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: CheckboxWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _kYrpAB5sEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 3:31 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the checkbox widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the checkbox viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled checkbox widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label and value +with [get-view Properties | get-section Checkbox | get-button "Disable Checkbox"] { + get-property enablement | equals false | verify-true + get-property kind | equals Check | verify-true + get-property "getText()" | equals "Disable Checkbox" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetOnClick.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetOnClick.test new file mode 100644 index 0000000000..c4afc55c43 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/CheckboxWidgetOnClick.test @@ -0,0 +1,37 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_kYk7UB5sEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: CheckboxWidgetOnClick +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _kYusUB5sEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 3:37 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the checkbox widget onclick action. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the checkbox viewpoint, +* selects an element in the diagram, +* click on the checkbox in the properties view, +* checks the element name is edited in the diagram. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Click on the checkbox +get-view Properties | get-section Checkbox | get-button Checkbox | check + +// Check that the value changed in the model +get-view Properties | get-section Checkbox | get-button "Disable Checkbox" | get-property selected | equals true + | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/SelectCheckboxViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/SelectCheckboxViewpoint.ctx new file mode 100644 index 0000000000..c24e488742 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/checkbox/SelectCheckboxViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectCheckboxViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _kYk7UB5sEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 11:24 AM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | check + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetConditionalStyle.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetConditionalStyle.test new file mode 100644 index 0000000000..5db19ce5bc --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetConditionalStyle.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetConditionalStyle +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _V_yHQB5gEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:57 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Hyperlink | get-editbox -index 16] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Conditional Style Hyperlink" | verify-true +} + +// Check default value +with [get-view Properties | get-section Hyperlink | get-editbox -index 17] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property readOnly | equals true | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 1 | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "styles[0].underline" | equals link | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetDefault.test new file mode 100644 index 0000000000..d733f6fe32 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetDefault.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _ZJml4B3GEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:34 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Hyperlink | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Hyperlink | verify-true +} + +// Check default value +with [get-view Properties | get-section Hyperlink | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property readOnly | equals true | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "getBounds().height" | equals 17 | verify-true + get-property "styles[0].underline" | equals link | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetDisable.test new file mode 100644 index 0000000000..45093b114e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetDisable.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _ZJppMB3GEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:58 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled hyperlink widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label +with [get-view Properties | get-section Hyperlink | get-editbox -index 18] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Hyperlink" | verify-true +} + +// Check disable value +with [get-view Properties | get-section Hyperlink | get-editbox -index 19] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals true | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetOnClick.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetOnClick.test new file mode 100644 index 0000000000..9da53860b9 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetOnClick.test @@ -0,0 +1,42 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetOnClick +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _FmfWIB3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:39 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget onclick action. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* click on the hyperlink in the properties view, +* checks the element name is edited in the diagram, +* checks the element named is updated in the properties view. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Click on the hyperlink +get-view Properties | get-section Hyperlink | get-editbox -index 1 | click + +// Check that the label changed in the diagram +get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram | get-edit-part -name NewValue + | get-edit-part -className SquareEditPart | get-figure "0/0" | get-property "getText()" | equals NewValue + | verify-true + +// Check that the label changed in the other widgets in the properties view +get-view Properties | get-section Hyperlink | get-editbox -index 3 | get-property text | equals NewValue | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleAll.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleAll.test new file mode 100644 index 0000000000..3d1b504a6d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleAll.test @@ -0,0 +1,54 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleAll +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _FmjAgB3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:53 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Hyperlink | get-editbox -index 14] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink All" | verify-true +} + +// Check style value +with [get-view Properties | get-section Hyperlink | get-editbox -index 15] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].underline" | equals link | verify-true + get-property "styles[0].strikeout" | equals true | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 3 | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleBackgroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleBackgroundColor.test new file mode 100644 index 0000000000..ca9163c3fe --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleBackgroundColor.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleBackgroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _4wvPoB5eEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:50 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Hyperlink | get-editbox -index 12] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink Background Color" | verify-true +} + +// Check styled value +with [get-view Properties | get-section Hyperlink | get-editbox -index 13] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "styles[0].underline" | equals link | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleBold.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleBold.test new file mode 100644 index 0000000000..14e600bede --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleBold.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleBold +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _FmnR8B3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:49 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Hyperlink | get-editbox -index 6] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink Bold" | verify-true +} + +// Check style value +with [get-view Properties | get-section Hyperlink | get-editbox -index 7] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 1 | verify-true + get-property "styles[0].underline" | equals link | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleFont.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleFont.test new file mode 100644 index 0000000000..a5d47b5288 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleFont.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleFont +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _FmqVQB3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:49 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Hyperlink | get-editbox -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink Font" | verify-true +} + +// Check style text value +with [get-view Properties | get-section Hyperlink | get-editbox -index 3] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true + get-property "styles[0].underline" | equals link | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleItalic.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleItalic.test new file mode 100644 index 0000000000..1e3c710c71 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleItalic.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleItalic +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _FmtYkB3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:50 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Hyperlink | get-editbox -index 4] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink Italic" | verify-true +} + +// Check style value +with [get-view Properties | get-section Hyperlink | get-editbox -index 5] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 2 | verify-true + get-property "styles[0].underline" | equals link | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleStrike.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleStrike.test new file mode 100644 index 0000000000..2809e75d99 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleStrike.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleStrike +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Fmwb4B3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:50 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Hyperlink | get-editbox -index 10] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink Strike" | verify-true +} + +// Check style value +with [get-view Properties | get-section Hyperlink | get-editbox -index 11] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].strikeout" | equals true | verify-true + get-property "styles[0].underline" | equals link | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleUnderline.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleUnderline.test new file mode 100644 index 0000000000..0f934ccaa3 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/HyperlinkWidgetStyleUnderline.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_TqbncB3GEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: HyperlinkWidgetStyleUnderline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Fm0GQB3HEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:50 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the hyperlink widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the hyperlink viewpoint, +* selects an element in the diagram, +* checks the properties view of a hyperlink widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Hyperlink | get-editbox -index 8] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Hyperlink Underline" | verify-true +} + +// Check style value +with [get-view Properties | get-section Hyperlink | get-editbox -index 9] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].underline" | equals link | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/SelectHyperlinkViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/SelectHyperlinkViewpoint.ctx new file mode 100644 index 0000000000..63b27bfdc8 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/hyperlink/SelectHyperlinkViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectHyperlinkViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _TqbncB3GEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:34 PM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | check + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetConditionalStyle.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetConditionalStyle.test new file mode 100644 index 0000000000..7a4f94aaf9 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetConditionalStyle.test @@ -0,0 +1,52 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetConditionalStyle +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _r7voQB5gEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:02 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a conditional style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Label | get-editbox -index 18] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Conditional Style Label" | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check default value +with [get-view Properties | get-section Label | get-editbox -index 19] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property foregroundColor | equals "#4D8914" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetDefault.test new file mode 100644 index 0000000000..b9714a6685 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetDefault.test @@ -0,0 +1,54 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _BGAcQB3BEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:46 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Label | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Label | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check default value +with [get-view Properties | get-section Label | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "getBounds().height" | equals 17 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetDisable.test new file mode 100644 index 0000000000..9be7a138b1 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetDisable.test @@ -0,0 +1,53 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _wBWhEB3DEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:44 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled label widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label +with [get-view Properties | get-section Label | get-editbox -index 20] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Label" | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check disable value +with [get-view Properties | get-section Label | get-editbox -index 21] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleAll.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleAll.test new file mode 100644 index 0000000000..df16df6da4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleAll.test @@ -0,0 +1,56 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleAll +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _ITPXoB3EEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:48 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 16] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label All" | verify-true +} + +// Check style value +with [get-view Properties | get-section Label | get-editbox -index 17] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property "styles[0].underline" | equals single | verify-true + get-property "styles[0].strikeout" | equals true | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 3 | verify-true + get-property foregroundColor | equals "#9A6717" | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleBackgroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleBackgroundColor.test new file mode 100644 index 0000000000..6dce415b43 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleBackgroundColor.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleBackgroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _9s5CAB3ZEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:18 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 12] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label Background Color" | verify-true +} + +// Check styled value +with [get-view Properties | get-section Label | get-editbox -index 13] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleBold.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleBold.test new file mode 100644 index 0000000000..c7032e07b2 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleBold.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleBold +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Z54eMB3EEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:48 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 6] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label Bold" | verify-true +} + +// Check style value +with [get-view Properties | get-section Label | get-editbox -index 7] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 1 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleFont.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleFont.test new file mode 100644 index 0000000000..d8136ed058 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleFont.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleFont +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Z58IkB3EEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:25 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label Font" | verify-true +} + +// Check style value +with [get-view Properties | get-section Label | get-editbox -index 3] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleItalic.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleItalic.test new file mode 100644 index 0000000000..3a26221048 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleItalic.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleItalic +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Z5_L4B3EEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:48 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 4] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label Italic" | verify-true +} + +// Check style value +with [get-view Properties | get-section Label | get-editbox -index 5] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 2 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleStrike.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleStrike.test new file mode 100644 index 0000000000..d88657b8d6 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleStrike.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleStrike +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Z6CPMB3EEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:48 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 10] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label Strike" | verify-true +} + +// Check style value +with [get-view Properties | get-section Label | get-editbox -index 11] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].strikeout" | equals true | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleUnderline.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleUnderline.test new file mode 100644 index 0000000000..348e1f8c32 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/LabelWidgetStyleUnderline.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_9JimsB3AEeahj7Y4FJ9H9w,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: LabelWidgetStyleUnderline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Z6EEYB3EEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 5:48 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the label viewpoint, +* selects an element in the diagram, +* checks the properties view of a label widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Label | get-editbox -index 8] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Label Underline" | verify-true +} + +// Check style value +with [get-view Properties | get-section Label | get-editbox -index 9] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu ven" + + "enatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a" + + " purus." | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].underline" | equals single | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/SelectLabelViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/SelectLabelViewpoint.ctx new file mode 100644 index 0000000000..0d528113cb --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/label/SelectLabelViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectLabelViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _9JimsB3AEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 2:55 PM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | check + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetDefault.test new file mode 100644 index 0000000000..e15e4b9287 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetDefault.test @@ -0,0 +1,57 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_iiAwYB5uEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: RadioWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _iiDzsB5uEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:01 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the radio widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the radio viewpoint, +* selects an element in the diagram, +* checks the properties view of a radio widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Radio | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Radio | verify-true +} + +// Check default value +with [get-view Properties | get-section Radio | get-control Any -index 5] { + get-property className | equals "org.eclipse.eef.ide.ui.internal.widgets.RadioGroup" | verify-true + get-property "getChildren().Control[0].getText()" | equals Literal1 | verify-true + get-property "getChildren().Control[1].getText()" | equals Literal2 | verify-true + get-property "getChildren().Control[2].getText()" | equals Literal3 | verify-true + get-property "getChildren().Control[0].getStyle()" | equals "[RADIO, FLAT, LEFT_TO_RIGHT, DOUBLE_BUFFERED, LEAD]" + | verify-true + get-property "getChildren().Control[1].getStyle()" | equals "[RADIO, FLAT, LEFT_TO_RIGHT, DOUBLE_BUFFERED, LEAD]" + | verify-true + get-property "getChildren().Control[2].getStyle()" | equals "[RADIO, FLAT, LEFT_TO_RIGHT, DOUBLE_BUFFERED, LEAD]" + | verify-true + +} + +// Check selected default value +get-view Properties | get-section Radio | get-button Literal1 | get-property selected | equals true | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetDisable.test new file mode 100644 index 0000000000..833aaf64af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetDisable.test @@ -0,0 +1,59 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_iiAwYB5uEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: RadioWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _iiGP8B5uEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:01 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the radio widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the radio viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled radio widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label +with [get-view Properties | get-section Radio | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Radio" | verify-true +} + +// Check disable value +with [get-view Properties | get-section Radio | get-control Any -index 5] { + get-property className | equals "org.eclipse.eef.ide.ui.internal.widgets.RadioGroup" | verify-true + get-property "getChildren().Control[0].getText()" | equals Literal1 | verify-true + get-property "getChildren().Control[1].getText()" | equals Literal2 | verify-true + get-property "getChildren().Control[2].getText()" | equals Literal3 | verify-true + get-property "getChildren().Control[0].getStyle()" | equals "[RADIO, FLAT, LEFT_TO_RIGHT, DOUBLE_BUFFERED, LEAD]" + | verify-true + get-property "getChildren().Control[1].getStyle()" | equals "[RADIO, FLAT, LEFT_TO_RIGHT, DOUBLE_BUFFERED, LEAD]" + | verify-true + get-property "getChildren().Control[2].getStyle()" | equals "[RADIO, FLAT, LEFT_TO_RIGHT, DOUBLE_BUFFERED, LEAD]" + | verify-true +} + +// Check selected default value +get-view Properties | get-section Radio | get-button Literal1 | get-property selected | equals true | verify-true + +get-view Properties | get-section Radio | get-control Any -index 11 | get-property enablement | equals false + | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetOnClick.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetOnClick.test new file mode 100644 index 0000000000..d51cd1af59 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/RadioWidgetOnClick.test @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_iiAwYB5uEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: RadioWidgetOnClick +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _iiIFIB5uEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:13 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the radio widget onclick action. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the radio viewpoint, +* selects an element in the diagram, +* click on the radio in the properties view, +* checks the element name is edited in the diagram. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Click on the radio +get-view Properties | get-section Radio | get-button Literal3 | click + +// Check that the value changed in the model +with [get-view Properties | get-section Radio] { + get-button Literal3 | get-property selected | equals true | verify-true + get-button Literal3 -index 1 | get-property selected | equals true | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/SelectRadioViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/SelectRadioViewpoint.ctx new file mode 100644 index 0000000000..466b85d36e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/radio/SelectRadioViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectRadioViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _iiAwYB5uEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 11:38 AM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | check + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetDefault.test new file mode 100644 index 0000000000..61fdd78992 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetDefault.test @@ -0,0 +1,118 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_B44asB5xEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: ReferenceWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _B48FEB5xEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 5:52 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the reference widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the reference viewpoint, +* selects an element in the diagram, +* checks the properties view of a reference widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check mono value + label + actions +with [get-view Properties | get-section Reference | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Default With Actions" | verify-true +} + +with [get-view Properties | get-section Reference | get-control Any -index 5] { + get-property "getChildren().length" | equals 2 | verify-true + get-property "getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.widgets.Label" | verify-true + get-property "getChildren().Control[0].getText()" | equals Element1 | verify-true + get-property "getChildren().Control[0].isEnabled()" | equals true | verify-true + get-property "getChildren().Control[1].getChildren().length" | equals 3 | verify-true + get-property "getChildren().Control[1].getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.widgets" + + ".Button" | verify-true + get-property "getChildren().Control[1].getChildren().Control[0].getText()" | equals Action1 | verify-true + get-property "getChildren().Control[1].getChildren().Control[0].isEnabled()" | equals true | verify-true + get-property "getChildren().Control[1].getChildren().Control[1].getClassName()" | equals "org.eclipse.swt.widgets" + + ".Button" | verify-true + get-property "getChildren().Control[1].getChildren().Control[1].getText()" | equals Action2 | verify-true + get-property "getChildren().Control[1].getChildren().Control[1].isEnabled()" | equals true | verify-true + get-property "getChildren().Control[1].getChildren().Control[2].getClassName()" | equals "org.eclipse.swt.widgets" + + ".Button" | verify-true + get-property "getChildren().Control[1].getChildren().Control[2].getText()" | equals "..." | verify-true + get-property "getChildren().Control[1].getChildren().Control[2].isEnabled()" | equals true | verify-true +} + +// Check mono value + hyperlink + no action +with [get-view Properties | get-section Reference] { + with [get-editbox -after [get-label Element1]] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property text | equals "Hyperlink Without Action" | verify-true + } + with [get-control Any -after [get-label Element1] -index 6] { + get-property "getChildren().Control[0].getClassName()" | equals "org.eclipse.ui.forms.widgets.Hyperlink" + | verify-true + get-property "getChildren().Control[0].getText()" | equals Element1 | verify-true + get-property "getChildren().Control[0].isUnderlined()" | equals true | verify-true + get-property "getChildren().Control[1].getChildren().length" | equals 0 | verify-true + } + get-view Properties | get-section Reference | get-link Element1 | get-property foregroundColor | equals "#212121" + | verify-true +} + +// Check multi value + table + actions +with [get-view Properties | get-section Reference] { + with [get-editbox -after [get-label Element1] -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property text | equals "Multi With Actions" | verify-true + } + with [get-control Any -after [get-link Element1] -index 3] { + get-property "getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.custom.ScrolledComposite" + | verify-true + get-property "getChildren().Control[0].getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.wid" + + "gets.Table" | verify-true + get-property "getChildren().Control[0].getChildren().Control[0].getItems().TableItem[0].getText()" | equals + "Element1" | verify-true + get-property "getChildren().Control[0].getChildren().Control[0].getItems().TableItem[1].getText()" | equals + "Element1" | verify-true + get-property "getChildren().Control[1].getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.wid" + + "gets.Button" | verify-true + get-property "getChildren().Control[1].getChildren().Control[0].getText()" | equals Action1 | verify-true + get-property "getChildren().Control[1].getChildren().Control[1].getClassName()" | equals "org.eclipse.swt.wid" + + "gets.Button" | verify-true + get-property "getChildren().Control[1].getChildren().Control[1].getText()" | equals Action2 | verify-true + } +} +// Check multi value + table + no actions +with [get-view Properties | get-section Reference] { + with [get-editbox -after [get-label Element1] -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property text | equals "Multi With OnClick Without Action" | verify-true + } + with [get-control Any -after [get-link Element1] -index 15] { + get-property "getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.custom.ScrolledComposite" + | verify-true + get-property "getChildren().Control[0].getChildren().Control[0].getClassName()" | equals "org.eclipse.swt.wid" + + "gets.Table" | verify-true + get-property "getChildren().Control[0].getChildren().Control[0].getItems().TableItem[0].getText()" | equals + "Element1" | verify-true + get-property "getChildren().Control[0].getChildren().Control[0].getItems().TableItem[1].getText()" | equals + "Element1" | verify-true + get-property "getChildren().Control[1].getChildren().length" | equals 0 | verify-true + } +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetDisable.test new file mode 100644 index 0000000000..bd1609faa3 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetDisable.test @@ -0,0 +1,78 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_B44asB5xEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: ReferenceWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _B5A9kB5xEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 5:32 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the reference widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the reference viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled reference widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label and value + +with [get-view Properties | get-section Reference] { + with [get-editbox -after [get-label Element1] -index 3] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property text | equals "Disable Default With Actions" | verify-true + } + with [get-label Element1 -after [get-label Element1]] { + get-property className | equals "org.eclipse.swt.widgets.Label" | verify-true + get-property enablement | equals false | verify-true + get-property caption | equals Element1 | verify-true + } + with [get-button Action1 -after [get-label Element1 -after [get-label Element1]]] { + get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true + get-property enablement | equals false | verify-true + get-property caption | equals Action1 | verify-true + } + with [get-button Action2 -after [get-label Element1 -after [get-label Element1]]] { + get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true + get-property enablement | equals false | verify-true + get-property caption | equals Action2 | verify-true + } + with [get-button "..." -after [get-label Element1 -after [get-label Element1]]] { + get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true + get-property enablement | equals false | verify-true + get-property caption | equals "..." | verify-true + } + with [get-editbox -after [get-label Element1 -after [get-label Element1]]] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property text | equals "Disable Multi With Actions" | verify-true + } + with [get-table -after [get-label Element1 -after [get-label Element1]]] { + get-property className | equals "org.eclipse.swt.widgets.Table" | verify-true + get-property enablement | equals false | verify-true + } + with [get-button Action1 -after [get-label Element1 -after [get-label Element1]] -index 1] { + get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true + get-property enablement | equals false | verify-true + get-property caption | equals Action1 | verify-true + } + with [get-button Action2 -after [get-label Element1 -after [get-label Element1]] -index 1] { + get-property className | equals "org.eclipse.swt.widgets.Button" | verify-true + get-property enablement | equals false | verify-true + get-property caption | equals Action2 | verify-true + } +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetOnClick.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetOnClick.test new file mode 100644 index 0000000000..b49b48f800 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/ReferenceWidgetOnClick.test @@ -0,0 +1,50 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_B44asB5xEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: ReferenceWidgetOnClick +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _B5DZ0B5xEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 5:32 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the reference widget onclick action. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the reference viewpoint, +* selects an element in the diagram, +* click on the reference in the properties view, +* checks the element name is edited in the diagram. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Click on the hyperlink +get-view Properties | get-section Reference | get-link Element1 | click + +// Check that the value changed in the model +get-view Properties | get-section Reference | get-label ClickedOnHyperlink | get-property caption + | equals ClickedOnHyperlink | verify-true + +// Click on the action +get-view Properties | get-section Reference | get-button Action1 | click + +// Check that the value changed in the model +get-view Properties | get-section Reference | get-label Action1 | get-property caption | equals Action1 | verify-true + +// Click on the table +get-view Properties | get-section Reference | get-table -after [get-label Action1] -index 1 | select Action1 + +// Check that the value changed in the model +get-view Properties | get-section Reference | get-label ClickedOnTable | get-property caption | equals ClickedOnTable + | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/SelectReferenceViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/SelectReferenceViewpoint.ctx new file mode 100644 index 0000000000..f2387bba6d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/reference/SelectReferenceViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectReferenceViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _B44asB5xEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 11:56 AM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | check + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectSelectViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectSelectViewpoint.ctx new file mode 100644 index 0000000000..cba7dac751 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectSelectViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectSelectViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _F4Hs4B5wEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 11:49 AM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | check + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetDefault.test new file mode 100644 index 0000000000..0962fbccd3 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetDefault.test @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_F4Hs4B5wEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: SelectWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _F4KJIB5wEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:43 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the radio widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the radio viewpoint, +* selects an element in the diagram, +* checks the properties view of a radio widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Select | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Select | verify-true +} + +// Check default value +with [get-view Properties | get-section Select | get-combo] { + get-property enablement | equals true | verify-true + get-property selection | equals Element2 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetDisable.test new file mode 100644 index 0000000000..b9388ecf69 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetDisable.test @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_F4Hs4B5wEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: SelectWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _F4L-UB5wEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:52 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the radio widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the radio viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled radio widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label +with [get-view Properties | get-section Select | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Select" | verify-true +} + +// Check disable value +with [get-view Properties | get-section Select | get-combo -index 1] { + get-property enablement | equals false | verify-true + get-property selection | equals Element2 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetOnClick.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetOnClick.test new file mode 100644 index 0000000000..794456708e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/select/SelectWidgetOnClick.test @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_F4Hs4B5wEea-TdrfW8_m6g,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: SelectWidgetOnClick +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _F4NzgB5wEea-TdrfW8_m6g +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:53 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the radio widget onclick action. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the radio viewpoint, +* selects an element in the diagram, +* click on the radio in the properties view, +* checks the element name is edited in the diagram. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Click on the select +get-view Properties | get-section Select | get-combo | select Element13 + +// Check that the value changed in the model +with [get-view Properties | get-section Select] { + get-combo | get-property selection | equals Element13 | verify-true + get-combo -index 1 | get-property selection | equals Element13 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/SelectTextViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/SelectTextViewpoint.ctx index ef0865e484..ce6ea999bf 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/SelectTextViewpoint.ctx +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/SelectTextViewpoint.ctx @@ -6,7 +6,7 @@ Element-Type: context Element-Version: 2.0 Id: _7qJyUAidEea7hcZ9Jto1HQ Runtime-Version: 2.0.2.201511100828 -Save-Time: 4/22/16 5:30 PM +Save-Time: 5/18/16 1:25 PM ------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 Content-Type: text/ecl @@ -17,8 +17,28 @@ with [get-view "Model Explorer" | get-tree] { } with [get-window "Viewpoints Selection"] { with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect get-item PropertiesTestsText | check select PropertiesTestsText + get-item PropertiesTestsWidget | uncheck + select PropertiesTestsWidget } get-button OK | click } diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/Text widget.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/Text widget.test deleted file mode 100644 index f8676d3ee9..0000000000 --- a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/Text widget.test +++ /dev/null @@ -1,159 +0,0 @@ ---- RCPTT testcase --- -Format-Version: 1.0 -Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ -Element-Name: Text widget -Element-Type: testcase -Element-Version: 3.0 -External-Reference: -Id: _VvraQAhdEea7hcZ9Jto1HQ -Runtime-Version: 2.0.2.201511100828 -Save-Time: 4/22/16 6:02 PM -Testcase-Type: ecl - -------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa -Content-Type: text/plain -Entry-Name: .description - -This test aims to check the text widget. - -The test : -* loads the tests projects released with the Sirius test product, -* opens the test diagram, -* selects the text viewpoint, -* select an element in the diagram, -* checks the properties view : - - checks the label and the value of a default text widget, - - checks the label and the value of a text widget defining a style, - - checks the label and the value of a text widget defining a conditional style. -------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- -------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac -Content-Type: text/ecl -Entry-Name: .content - -// Check default text label -with [get-view Properties | get-section Group | get-editbox] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals Text | verify-true - get-property backgroundColor | equals "#FCFCFC" | verify-true - get-property foregroundColor | equals "#212121" | verify-true -} - -// Check default text value -with [get-view Properties | get-section Group | get-editbox -index 1] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals Element1 | verify-true - get-property backgroundColor | equals "#FCFCFC" | verify-true - get-property foregroundColor | equals "#212121" | verify-true - get-property "getBounds().height" | equals 17 | verify-true -} - -// Check styled text label -with [get-view Properties | get-section Group | get-editbox -index 2] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals "Style Text" | verify-true - get-property backgroundColor | equals "#454545" | verify-true - get-property foregroundColor | equals "#729FCF" | verify-true -} - -// Check style text value -with [get-view Properties | get-section Group | get-editbox -index 3] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property containMenu | equals false | verify-true - get-property text | equals Element1 | verify-true - get-property backgroundColor | equals "#729FCF" | verify-true - get-property foregroundColor | equals "#454545" | verify-true -} - -// Check conditional style text label -with [get-view Properties | get-section Group | get-editbox -index 4] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals "Conditional Style Text" | verify-true - get-property backgroundColor | equals "#454545" | verify-true - get-property foregroundColor | equals "#4D8914" | verify-true -} - -// Check conditional style text value -with [get-view Properties | get-section Group | get-editbox -index 5] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals Element1 | verify-true - get-property backgroundColor | equals "#4D8914" | verify-true - get-property foregroundColor | equals "#454545" | verify-true -} - -// Check default text area label -with [get-view Properties | get-section Group | get-editbox -index 6] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals "Text area" | verify-true - get-property backgroundColor | equals "#FCFCFC" | verify-true - get-property foregroundColor | equals "#212121" | verify-true -} - -// Check default text area value -with [get-view Properties | get-section Group | get-editbox -index 7] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals Element1 | verify-true - get-property backgroundColor | equals "#FCFCFC" | verify-true - get-property foregroundColor | equals "#212121" | verify-true - get-property "getVerticalBar().isVisible()" | equals true | verify-true - get-property "getBounds().height" | equals 85 | verify-true -} - -// Check style text area label -with [get-view Properties | get-section Group | get-editbox -index 8] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals "Style Text area" | verify-true - get-property backgroundColor | equals "#454545" | verify-true - get-property foregroundColor | equals "#729FCF" | verify-true -} - -// Check style text area value -with [get-view Properties | get-section Group | get-editbox -index 9] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals Element1 | verify-true - get-property backgroundColor | equals "#729FCF" | verify-true - get-property foregroundColor | equals "#454545" | verify-true - get-property "getVerticalBar().isVisible()" | equals true | verify-true - get-property "getBounds().height" | equals 85 | verify-true -} - -// Check conditional style text area label -with [get-view Properties | get-section Group | get-editbox -index 10] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals "Conditional Style Text area" | verify-true - get-property backgroundColor | equals "#454545" | verify-true - get-property foregroundColor | equals "#4D8914" | verify-true -} - -// Check conditional style text area value -with [get-view Properties | get-section Group | get-editbox -index 11] { - get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true - get-property enablement | equals true | verify-true - get-property readOnly | equals false | verify-true - get-property text | equals Element1 | verify-true - get-property backgroundColor | equals "#4D8914" | verify-true - get-property foregroundColor | equals "#454545" | verify-true - get-property "getVerticalBar().isVisible()" | equals true | verify-true - get-property "getBounds().height" | equals 85 | verify-true -} -------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetConditionalStyle.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetConditionalStyle.test new file mode 100644 index 0000000000..55b6646e66 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetConditionalStyle.test @@ -0,0 +1,54 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetConditionalStyle +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _MyTrcBw5EeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:52 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a conditional style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check conditional style label +with [get-view Properties | get-section TextArea | get-editbox -index 18] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Conditional Style Text Area" | verify-true +} + +// Check conditional style value +with [get-view Properties | get-section TextArea | get-editbox -index 19] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property foregroundColor | equals "#4D8914" | verify-true + get-property "getVerticalBar().isVisible()" | equals true | verify-true + get-property "getBounds().height" | equals 85 | verify-true +} + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetDefault.test new file mode 100644 index 0000000000..37171e95df --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetDefault.test @@ -0,0 +1,56 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _rlbZYBxEEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check default label +with [get-view Properties | get-section TextArea | get-editbox -index 0] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Text Area" | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check default value +with [get-view Properties | get-section TextArea | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "getVerticalBar().isVisible()" | equals true | verify-true + get-property "getBounds().height" | equals 85 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetDisable.test new file mode 100644 index 0000000000..3489d8b44d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetDisable.test @@ -0,0 +1,54 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _VoBOQBxBEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled text widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check disable label +with [get-view Properties | get-section TextArea | get-editbox -index 20] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Text area" | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check disable value +with [get-view Properties | get-section TextArea | get-editbox -index 21] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#F4F8FD" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetEdition.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetEdition.test new file mode 100644 index 0000000000..4e175f4a4f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetEdition.test @@ -0,0 +1,52 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetEdition +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _pk-J0BzOEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:16 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget edition. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* edit its value from the properties view, +* checks the element name is edited in the diagram, +* checks the element named is updated in the properties view. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Set a new value in the text area +with [get-view Properties | get-section TextArea | get-editbox -index 1 | set-text-selection -offset 16 -startLine 0 -endLine 0 + -endOffset 0] { + set-text-offset 0 0 + type-text NewValue +} + +// Timer in order that the edition tool is applied +wait 1000 + +// Check that the label changed in the diagram +get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram | get-edit-part -name NewValue + | get-edit-part -className SquareEditPart | get-figure "0/0" | get-property "getText()" | equals NewValue + | verify-true + +// Check that the label changed in the other widgets in the properties view +get-view Properties | get-section TextArea | get-editbox -index 3 | get-property "getText()" | equals NewValue | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleAll.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleAll.test new file mode 100644 index 0000000000..2f1a91a6a4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleAll.test @@ -0,0 +1,57 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleAll +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _wkpIgB0MEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 16] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area All" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 17] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].underline" | equals single | verify-true + get-property "styles[0].strikeout" | equals true | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 3 | verify-true + get-property foregroundColor | equals "#9A6717" | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleBackgroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleBackgroundColor.test new file mode 100644 index 0000000000..10e33196a6 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleBackgroundColor.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleBackgroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _kUtA4B0MEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:05 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style with a specific background color: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 12] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Background Color" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 13] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleBold.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleBold.test new file mode 100644 index 0000000000..57268e83d9 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleBold.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleBold +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _N30kIB0MEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 6] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Bold" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 7] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 1 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleFont.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleFont.test new file mode 100644 index 0000000000..6e769055a5 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleFont.test @@ -0,0 +1,52 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleFont +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _imkvYBxBEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Font" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 3] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleForegroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleForegroundColor.test new file mode 100644 index 0000000000..1d824ea94f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleForegroundColor.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleForegroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _oePCEB0MEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 14] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Foreground Color" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 15] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property foregroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleItalic.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleItalic.test new file mode 100644 index 0000000000..a701ab773f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleItalic.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleItalic +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _9Hy8gB0LEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 4] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Italic" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 5] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 2 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleStrike.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleStrike.test new file mode 100644 index 0000000000..e69d3a6ba2 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleStrike.test @@ -0,0 +1,52 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleStrike +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _ZmULkB0MEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 10] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Strike" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 11] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].strikeout" | equals true | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleUnderline.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleUnderline.test new file mode 100644 index 0000000000..f6ecc1c7d4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextAreaWidgetStyleUnderline.test @@ -0,0 +1,52 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextAreaWidgetStyleUnderline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Ue5l0B0MEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text area widget defining a style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Select Text Area tab +get-view Properties | get-canvas -index 6 | click + +// Check styled label +with [get-view Properties | get-section TextArea | get-editbox -index 8] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Area Underline" | verify-true +} + +// Check styled value +with [get-view Properties | get-section TextArea | get-editbox -index 9] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].underline" | equals single | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetConditionalStyle.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetConditionalStyle.test new file mode 100644 index 0000000000..9a772423b3 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetConditionalStyle.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetConditionalStyle +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _Y_e6UBw2EeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a conditional style: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check conditional style label +with [get-view Properties | get-section Text | get-editbox -index 18] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Conditional Style Text" | verify-true +} + +// Check conditional style value +with [get-view Properties | get-section Text | get-editbox -index 19] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property foregroundColor | equals "#4D8914" | verify-true +} + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetDefault.test new file mode 100644 index 0000000000..cb328e0705 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetDefault.test @@ -0,0 +1,52 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _VvraQAhdEea7hcZ9Jto1HQ +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default label +with [get-view Properties | get-section Text | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Text | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check default value +with [get-view Properties | get-section Text | get-editbox -index 1] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "getBounds().height" | equals 17 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetDisable.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetDisable.test new file mode 100644 index 0000000000..7480b5a87c --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetDisable.test @@ -0,0 +1,51 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetDisable +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _isNeUBw2EeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a disabled text area widget : + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check disable label +with [get-view Properties | get-section Text | get-editbox -index 20] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Disable Text" | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} + +// Check disable value +with [get-view Properties | get-section Text | get-editbox -index 21] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#F4F8FD" | verify-true + get-property foregroundColor | equals "#212121" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetEdition.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetEdition.test new file mode 100644 index 0000000000..2a51c8c9ba --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetEdition.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetEdition +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _CTbYIBxBEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 10:00 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget edition. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* edit its value from the properties view, +* checks the element name is edited in the diagram, +* checks the element named is updated in the properties view. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Set a new value in the text area +with [get-view Properties | get-section Text | get-editbox -index 1 | set-text-selection -offset 16 -startLine 0 -endLine 0 + -endOffset 0] { + set-text-offset 0 0 + type-text NewValue +} + +// Timer in order that the edition tool is applied +wait 1000 + +// Check that the label changed in the diagram +get-editor RootDiagram | get-diagram -index 1 | get-edit-part -name RootDiagram | get-edit-part -name NewValue + | get-edit-part -className SquareEditPart | get-figure "0/0" | get-property "getText()" | equals NewValue + | verify-true + +// Check that the label changed in the other widgets in the properties view +get-view Properties | get-section Text | get-editbox -index 3 | get-property "getText()" | equals NewValue | verify-true +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleAll.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleAll.test new file mode 100644 index 0000000000..f315aabaa0 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleAll.test @@ -0,0 +1,54 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleAll +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _sDtMkB0PEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 16] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text All" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 17] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].underline" | equals single | verify-true + get-property "styles[0].strikeout" | equals true | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 3 | verify-true + get-property foregroundColor | equals "#9A6717" | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleBackgroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleBackgroundColor.test new file mode 100644 index 0000000000..1fa76ff17b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleBackgroundColor.test @@ -0,0 +1,48 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleBackgroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _eWzAEB5hEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:05 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific background color: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 12] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Background Color" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 13] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleBold.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleBold.test new file mode 100644 index 0000000000..95af96c7bb --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleBold.test @@ -0,0 +1,48 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleBold +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _FaCqEB0NEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 6] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Bold" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 7] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 1 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleFont.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleFont.test new file mode 100644 index 0000000000..a35841d782 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleFont.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleFont +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _DnisYBw2EeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Font" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 3] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleForegroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleForegroundColor.test new file mode 100644 index 0000000000..a33752c619 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleForegroundColor.test @@ -0,0 +1,48 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleForegroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _sc_esB5hEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:07 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific background color: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check style label +with [get-view Properties | get-section Text | get-editbox -index 14] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Foreground Color" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 15] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property foregroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleItalic.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleItalic.test new file mode 100644 index 0000000000..97e03d1d28 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleItalic.test @@ -0,0 +1,48 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleItalic +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _AW8joB0NEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 4] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Italic" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 5] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 2 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleStrike.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleStrike.test new file mode 100644 index 0000000000..1ba9e452e4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleStrike.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleStrike +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _RO8bgB0NEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 10] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Strike" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 11] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].strikeout" | equals true | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleUnderline.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleUnderline.test new file mode 100644 index 0000000000..f5cc71fd8e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/text/TextWidgetStyleUnderline.test @@ -0,0 +1,49 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_7qJyUAidEea7hcZ9Jto1HQ,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: TextWidgetStyleUnderline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _LiyxAB0NEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/19/16 3:55 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the text widget. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget defining a style with a specific font name: + - checks the label, + - checks the value. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled label +with [get-view Properties | get-section Text | get-editbox -index 8] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Underline" | verify-true +} + +// Check style value +with [get-view Properties | get-section Text | get-editbox -index 9] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals true | verify-true + get-property containMenu | equals false | verify-true + get-property text | equals Element1 | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].underline" | equals single | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/SelectWidgetViewpoint.ctx b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/SelectWidgetViewpoint.ctx new file mode 100644 index 0000000000..f9bcda82cc --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/SelectWidgetViewpoint.ctx @@ -0,0 +1,45 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Context-Type: org.eclipse.rcptt.ctx.ecl +Element-Name: SelectWidgetViewpoint +Element-Type: context +Element-Version: 2.0 +Id: _nN-U4BzcEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 11:48 AM + +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998 +Content-Type: text/ecl +Entry-Name: .ecl.context + +with [get-view "Model Explorer" | get-tree] { + select "org.eclipse.sirius.tests.rcptt.properties.instance" | get-menu "Viewpoints Selection" | click +} +with [get-window "Viewpoints Selection"] { + with [get-table] { + get-item PropertiesTests | check + select PropertiesTests + get-item PropertiesTestsButton | uncheck + select PropertiesTestsButton + get-item PropertiesTestsCheckbox | uncheck + select PropertiesTestsCheckbox + get-item PropertiesTestsGroup | uncheck + select PropertiesTestsGroup + get-item PropertiesTestsHyperlink | uncheck + select PropertiesTestsHyperlink + get-item PropertiesTestsLabel | uncheck + select PropertiesTestsLabel + get-item PropertiesTestsRadio | uncheck + select PropertiesTestsRadio + get-item PropertiesTestsReference | uncheck + select PropertiesTestsReference + get-item PropertiesTestsSelect | uncheck + select PropertiesTestsSelect + get-item PropertiesTestsText | uncheck + select PropertiesTestsText + get-item PropertiesTestsWidget | check + select PropertiesTestsWidget + } + get-button OK | click +} +------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetConditionalStyle.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetConditionalStyle.test new file mode 100644 index 0000000000..9427e8f585 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetConditionalStyle.test @@ -0,0 +1,40 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetConditionalStyle +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _AsDrEBzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 12:15 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label conditional style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font color. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check conditional style text label +with [get-view Properties | get-section Widget | get-editbox -index 18] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Conditional Style Text" | verify-true + get-property foregroundColor | equals "#4D8914" | verify-true +} + +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetDefault.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetDefault.test new file mode 100644 index 0000000000..56e9f3a8a2 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetDefault.test @@ -0,0 +1,43 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetDefault +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _AsGHUBzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 11:57 AM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the label. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the label background color, + - checks the label foreground color, + - checks the font is normal. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check default text label +with [get-view Properties | get-section Widget | get-editbox] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals Text | verify-true + get-property backgroundColor | equals "#FCFCFC" | verify-true + get-property foregroundColor | equals "#212121" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 0 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleAll.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleAll.test new file mode 100644 index 0000000000..1125fdc517 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleAll.test @@ -0,0 +1,48 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleAll +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _jPK50BzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the all label styles. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font name and height, + - checks the font is italic, bold, underline, strike through, + - checks the font foreground, + - checks the font background. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 16] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text All" | verify-true + get-property "styles[0].underline" | equals single | verify-true + get-property "styles[0].strikeout" | equals true | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 3 | verify-true + get-property foregroundColor | equals "#9A6717" | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleBackgroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleBackgroundColor.test new file mode 100644 index 0000000000..39945dce2f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleBackgroundColor.test @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleBackgroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _OOABkBziEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the background color label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the label background color. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 12] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Background Color" | verify-true + get-property backgroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleBold.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleBold.test new file mode 100644 index 0000000000..c7a303aab4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleBold.test @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleBold +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _X4vNEBzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the bold label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font is bold. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 6] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Bold" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 1 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleFont.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleFont.test new file mode 100644 index 0000000000..c1ce39c1bc --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleFont.test @@ -0,0 +1,41 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleFont +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _AsM1ABzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the underline label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font name + - checks the font heigth. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 2] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Font" | verify-true + get-property "getFont().getFontData().FontData[0].name" | equals "Times new roman" | verify-true + get-property "getFont().getFontData().FontData[0].height" | equals "12.0" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleForegroundColor.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleForegroundColor.test new file mode 100644 index 0000000000..d3044fcdfa --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleForegroundColor.test @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleForegroundColor +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _XrscUBzoEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the background color label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the label background color. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 14] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Foreground Color" | verify-true + get-property foregroundColor | equals "#729FCF" | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleItalic.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleItalic.test new file mode 100644 index 0000000000..8615271dfa --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleItalic.test @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleItalic +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _NAcN0BzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the italic label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font is italic. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 4] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Italic" | verify-true + get-property "getFont().getFontData().FontData[0].style" | equals 2 | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleStrike.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleStrike.test new file mode 100644 index 0000000000..9e3e85bfa2 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleStrike.test @@ -0,0 +1,40 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleStrike +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _d1YKoBzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the strike through label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font is strike through. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 10] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Strike" | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].strikeout" | equals true | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleUnderline.test b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleUnderline.test new file mode 100644 index 0000000000..ae0830d02d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/case/properties/widgets/widget/WidgetStyleUnderline.test @@ -0,0 +1,40 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Contexts: _N-iakAicEea7hcZ9Jto1HQ,_Sc0HQAidEea7hcZ9Jto1HQ,_ISVO4AheEea7hcZ9Jto1HQ,_CxvK8AicEea7hcZ9Jto1HQ,_1dc_gAidEea7hcZ9Jto1HQ,_nN-U4BzcEeaiCsudO7w7vA,_ZuJ8AAifEea7hcZ9Jto1HQ +Element-Name: WidgetStyleUnderline +Element-Type: testcase +Element-Version: 3.0 +External-Reference: +Id: _ayQX4BzYEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 5:20 PM +Testcase-Type: ecl + +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa +Content-Type: text/plain +Entry-Name: .description + +This test aims to check the underline label style. + +The test : +* loads the tests projects released with the Sirius test product, +* opens the test diagram, +* selects the text viewpoint, +* selects an element in the diagram, +* checks the properties view of a text widget : + - checks the font is underlined. +------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac +Content-Type: text/ecl +Entry-Name: .content + +// Check styled text label +with [get-view Properties | get-section Widget | get-editbox -index 8] { + get-property className | equals "org.eclipse.swt.custom.StyledText" | verify-true + get-property enablement | equals false | verify-true + get-property readOnly | equals false | verify-true + get-property text | equals "Style Text Underline" | verify-true + get-property "styles[0].fontStyle" | equals normal | verify-true + get-property "styles[0].underline" | equals single | verify-true +} +------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Button.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Button.suite new file mode 100644 index 0000000000..16329d52ef --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Button.suite @@ -0,0 +1,18 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Button +Element-Type: testsuite +Element-Version: 2.0 +Id: _O-fB8CGFEeaIrJ9X-4BslQ +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/24/16 9:58 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_tSdmwB5kEeahj7Y4FJ9H9w // kind: 'test' name: 'ButtonWidgetDefault' path: '../case/properties/widgets/button/ButtonWidgetDefault.test' +_tSgDAB5kEeahj7Y4FJ9H9w // kind: 'test' name: 'ButtonWidgetDisable' path: '../case/properties/widgets/button/ButtonWidgetDisable.test' +_tSh4MB5kEeahj7Y4FJ9H9w // kind: 'test' name: 'ButtonWidgetOnClick' path: '../case/properties/widgets/button/ButtonWidgetOnClick.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Checkbox.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Checkbox.suite new file mode 100644 index 0000000000..2e9d16c83d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Checkbox.suite @@ -0,0 +1,18 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Checkbox +Element-Type: testsuite +Element-Version: 2.0 +Id: _0HauUCGDEeaIrJ9X-4BslQ +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/24/16 9:48 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_kYolsB5sEea-TdrfW8_m6g // kind: 'test' name: 'CheckboxWidgetDefault' path: '../case/properties/widgets/checkbox/CheckboxWidgetDefault.test' +_kYrpAB5sEea-TdrfW8_m6g // kind: 'test' name: 'CheckboxWidgetDisable' path: '../case/properties/widgets/checkbox/CheckboxWidgetDisable.test' +_kYusUB5sEea-TdrfW8_m6g // kind: 'test' name: 'CheckboxWidgetOnClick' path: '../case/properties/widgets/checkbox/CheckboxWidgetOnClick.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Hyperlink.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Hyperlink.suite new file mode 100644 index 0000000000..170d0149d7 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Hyperlink.suite @@ -0,0 +1,26 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Hyperlink +Element-Type: testsuite +Element-Version: 2.0 +Id: _EXIyYB5cEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 9:58 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_ZJml4B3GEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetDefault' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetDefault.test' +_ZJppMB3GEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetDisable' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetDisable.test' +_FmfWIB3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetOnClick' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetOnClick.test' +_FmjAgB3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleAll' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleAll.test' +_FmnR8B3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleBold' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleBold.test' +_FmqVQB3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleFont' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleFont.test' +_FmtYkB3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleItalic' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleItalic.test' +_Fmwb4B3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleStrike' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleStrike.test' +_Fm0GQB3HEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleUnderline' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleUnderline.test' +_V_yHQB5gEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetConditionalStyle' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetConditionalStyle.test' +_4wvPoB5eEeahj7Y4FJ9H9w // kind: 'test' name: 'HyperlinkWidgetStyleBackgroundColor' path: '../case/properties/widgets/hyperlink/HyperlinkWidgetStyleBackgroundColor.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Label.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Label.suite new file mode 100644 index 0000000000..ef2dbebaee --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Label.suite @@ -0,0 +1,25 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Label +Element-Type: testsuite +Element-Version: 2.0 +Id: _ol11sB5bEeahj7Y4FJ9H9w +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:03 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_BGAcQB3BEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetDefault' path: '../case/properties/widgets/label/LabelWidgetDefault.test' +_wBWhEB3DEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetDisable' path: '../case/properties/widgets/label/LabelWidgetDisable.test' +_ITPXoB3EEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleAll' path: '../case/properties/widgets/label/LabelWidgetStyleAll.test' +_9s5CAB3ZEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleBackgroundColor' path: '../case/properties/widgets/label/LabelWidgetStyleBackgroundColor.test' +_Z54eMB3EEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleBold' path: '../case/properties/widgets/label/LabelWidgetStyleBold.test' +_Z58IkB3EEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleFont' path: '../case/properties/widgets/label/LabelWidgetStyleFont.test' +_Z5_L4B3EEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleItalic' path: '../case/properties/widgets/label/LabelWidgetStyleItalic.test' +_Z6CPMB3EEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleStrike' path: '../case/properties/widgets/label/LabelWidgetStyleStrike.test' +_Z6EEYB3EEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetStyleUnderline' path: '../case/properties/widgets/label/LabelWidgetStyleUnderline.test' +_r7voQB5gEeahj7Y4FJ9H9w // kind: 'test' name: 'LabelWidgetConditionalStyle' path: '../case/properties/widgets/label/LabelWidgetConditionalStyle.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Properties.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Properties.suite index 912ee7943d..35e4e17b79 100644 --- a/plugins/org.eclipse.sirius.tests.rcptt/suite/Properties.suite +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Properties.suite @@ -5,7 +5,7 @@ Element-Type: testsuite Element-Version: 2.0 Id: _F64EwAhdEea7hcZ9Jto1HQ Runtime-Version: 2.0.2.201511100828 -Save-Time: 4/22/16 5:57 PM +Save-Time: 5/24/16 9:58 AM ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa Content-Type: text/plain @@ -17,6 +17,14 @@ Test suite for ell the properties view related tests Content-Type: text/testcase Entry-Name: testcase-items -_VvraQAhdEea7hcZ9Jto1HQ // kind: 'test' name: 'Text widgets' path: '../case/properties/widgets/text/Text widgets.test' +_2HEpoBw4EeaiCsudO7w7vA // kind: 'suite' name: 'Text' path: 'Text.suite' +_HIkWUBzqEeaiCsudO7w7vA // kind: 'suite' name: 'Widget' path: 'Widget.suite' +_EXIyYB5cEeahj7Y4FJ9H9w // kind: 'suite' name: 'Hyperlink' path: 'Hyperlink.suite' +_ol11sB5bEeahj7Y4FJ9H9w // kind: 'suite' name: 'Label' path: 'Label.suite' +_RM_K0CDKEeam67BeeiuDyg // kind: 'suite' name: 'Radio' path: 'Radio.suite' +_TScJgCDMEeam67BeeiuDyg // kind: 'suite' name: 'Select' path: 'Select.suite' +_pseiQCD7Eeam67BeeiuDyg // kind: 'suite' name: 'Reference' path: 'Reference.suite' +_0HauUCGDEeaIrJ9X-4BslQ // kind: 'suite' name: 'Checkbox' path: 'Checkbox.suite' +_O-fB8CGFEeaIrJ9X-4BslQ // kind: 'suite' name: 'Button' path: 'Button.suite' ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Radio.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Radio.suite new file mode 100644 index 0000000000..40c5871dde --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Radio.suite @@ -0,0 +1,18 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Radio +Element-Type: testsuite +Element-Version: 2.0 +Id: _RM_K0CDKEeam67BeeiuDyg +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:39 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_iiDzsB5uEea-TdrfW8_m6g // kind: 'test' name: 'RadioWidgetDefault' path: '../case/properties/widgets/radio/RadioWidgetDefault.test' +_iiGP8B5uEea-TdrfW8_m6g // kind: 'test' name: 'RadioWidgetDisable' path: '../case/properties/widgets/radio/RadioWidgetDisable.test' +_iiIFIB5uEea-TdrfW8_m6g // kind: 'test' name: 'RadioWidgetOnClick' path: '../case/properties/widgets/radio/RadioWidgetOnClick.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Reference.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Reference.suite new file mode 100644 index 0000000000..09da1b84fc --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Reference.suite @@ -0,0 +1,18 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Reference +Element-Type: testsuite +Element-Version: 2.0 +Id: _pseiQCD7Eeam67BeeiuDyg +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 5:33 PM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_B48FEB5xEea-TdrfW8_m6g // kind: 'test' name: 'ReferenceWidgetDefault' path: '../case/properties/widgets/reference/ReferenceWidgetDefault.test' +_B5A9kB5xEea-TdrfW8_m6g // kind: 'test' name: 'ReferenceWidgetDisable' path: '../case/properties/widgets/reference/ReferenceWidgetDisable.test' +_B5DZ0B5xEea-TdrfW8_m6g // kind: 'test' name: 'ReferenceWidgetOnClick' path: '../case/properties/widgets/reference/ReferenceWidgetOnClick.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Select.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Select.suite new file mode 100644 index 0000000000..c0bcba668f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Select.suite @@ -0,0 +1,18 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Select +Element-Type: testsuite +Element-Version: 2.0 +Id: _TScJgCDMEeam67BeeiuDyg +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/23/16 11:54 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_F4KJIB5wEea-TdrfW8_m6g // kind: 'test' name: 'SelectWidgetDefault' path: '../case/properties/widgets/select/SelectWidgetDefault.test' +_F4L-UB5wEea-TdrfW8_m6g // kind: 'test' name: 'SelectWidgetDisable' path: '../case/properties/widgets/select/SelectWidgetDisable.test' +_F4NzgB5wEea-TdrfW8_m6g // kind: 'test' name: 'SelectWidgetOnClick' path: '../case/properties/widgets/select/SelectWidgetOnClick.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Text.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Text.suite new file mode 100644 index 0000000000..c04e825b1f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Text.suite @@ -0,0 +1,39 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Text +Element-Type: testsuite +Element-Version: 2.0 +Id: _2HEpoBw4EeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/20/16 10:08 AM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_Y_e6UBw2EeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetConditionalStyle' path: '../case/properties/widgets/text/TextWidgetConditionalStyle.test' +_VvraQAhdEea7hcZ9Jto1HQ // kind: 'test' name: 'TextWidgetDefault' path: '../case/properties/widgets/text/TextWidgetDefault.test' +_isNeUBw2EeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetDisable' path: '../case/properties/widgets/text/TextWidgetDisable.test' +_DnisYBw2EeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetStyleFont' path: '../case/properties/widgets/text/TextWidgetStyleFont.test' +_MyTrcBw5EeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetConditionalStyle' path: '../case/properties/widgets/text/TextAreaWidgetConditionalStyle.test' +_CTbYIBxBEeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetEdition' path: '../case/properties/widgets/text/TextWidgetEdition.test' +_VoBOQBxBEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetDisable' path: '../case/properties/widgets/text/TextAreaWidgetDisable.test' +_imkvYBxBEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleFont' path: '../case/properties/widgets/text/TextAreaWidgetStyleFont.test' +_rlbZYBxEEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetDefault' path: '../case/properties/widgets/text/TextAreaWidgetDefault.test' +_pk-J0BzOEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetEdition' path: '../case/properties/widgets/text/TextAreaWidgetEdition.test' +_wkpIgB0MEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleAll' path: '../case/properties/widgets/text/TextAreaWidgetStyleAll.test' +_kUtA4B0MEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleBackgroundColor' path: '../case/properties/widgets/text/TextAreaWidgetStyleBackgroundColor.test' +_N30kIB0MEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleBold' path: '../case/properties/widgets/text/TextAreaWidgetStyleBold.test' +_oePCEB0MEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleForegroundColor' path: '../case/properties/widgets/text/TextAreaWidgetStyleForegroundColor.test' +_9Hy8gB0LEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleItalic' path: '../case/properties/widgets/text/TextAreaWidgetStyleItalic.test' +_ZmULkB0MEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleStrike' path: '../case/properties/widgets/text/TextAreaWidgetStyleStrike.test' +_Ue5l0B0MEeaiCsudO7w7vA // kind: 'test' name: 'TextAreaWidgetStyleUnderline' path: '../case/properties/widgets/text/TextAreaWidgetStyleUnderline.test' +_sDtMkB0PEeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetStyleAll' path: '../case/properties/widgets/text/TextWidgetStyleAll.test' +_FaCqEB0NEeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetStyleBold' path: '../case/properties/widgets/text/TextWidgetStyleBold.test' +_AW8joB0NEeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetStyleItalic' path: '../case/properties/widgets/text/TextWidgetStyleItalic.test' +_RO8bgB0NEeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetStyleStrike' path: '../case/properties/widgets/text/TextWidgetStyleStrike.test' +_LiyxAB0NEeaiCsudO7w7vA // kind: 'test' name: 'TextWidgetStyleUnderline' path: '../case/properties/widgets/text/TextWidgetStyleUnderline.test' +_eWzAEB5hEeahj7Y4FJ9H9w // kind: 'test' name: 'TextWidgetStyleBackgroundColor' path: '../case/properties/widgets/text/TextWidgetStyleBackgroundColor.test' +_sc_esB5hEeahj7Y4FJ9H9w // kind: 'test' name: 'TextWidgetStyleForegroundColor' path: '../case/properties/widgets/text/TextWidgetStyleForegroundColor.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- diff --git a/plugins/org.eclipse.sirius.tests.rcptt/suite/Widget.suite b/plugins/org.eclipse.sirius.tests.rcptt/suite/Widget.suite new file mode 100644 index 0000000000..6296d63160 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt/suite/Widget.suite @@ -0,0 +1,25 @@ +--- RCPTT testcase --- +Format-Version: 1.0 +Element-Name: Widget +Element-Type: testsuite +Element-Version: 2.0 +Id: _HIkWUBzqEeaiCsudO7w7vA +Runtime-Version: 2.0.2.201511100828 +Save-Time: 5/18/16 1:17 PM + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8 +Content-Type: text/testcase +Entry-Name: testcase-items + +_AsDrEBzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetConditionalStyle' path: '../case/properties/widgets/widget/WidgetConditionalStyle.test' +_AsGHUBzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetDefault' path: '../case/properties/widgets/widget/WidgetDefault.test' +_jPK50BzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextAll' path: '../case/properties/widgets/widget/WidgetStyleTextAll.test' +_OOABkBziEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextBackgroundColor' path: '../case/properties/widgets/widget/WidgetStyleTextBackgroundColor.test' +_X4vNEBzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextBold' path: '../case/properties/widgets/widget/WidgetStyleTextBold.test' +_AsM1ABzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextFont' path: '../case/properties/widgets/widget/WidgetStyleTextFont.test' +_XrscUBzoEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextForegroundColor' path: '../case/properties/widgets/widget/WidgetStyleTextForegroundColor.test' +_NAcN0BzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextItalic' path: '../case/properties/widgets/widget/WidgetStyleTextItalic.test' +_d1YKoBzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextStrike' path: '../case/properties/widgets/widget/WidgetStyleTextStrike.test' +_ayQX4BzYEeaiCsudO7w7vA // kind: 'test' name: 'WidgetStyleTextUnderline' path: '../case/properties/widgets/widget/WidgetStyleTextUnderline.test' + +------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8-- |
