blob: 94d36155a7d6c13de2caf428995a352172ca1c7d [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _LipjoO9FEeWazOws8qE-Nw,_xLFOcO9OEeW7SP0a5rPzzg,_NN2OQO9SEeW7SP0a5rPzzg,_UBBLMO9SEeW7SP0a5rPzzg,_RYkiQO9SEeW7SP0a5rPzzg
Element-Name: Rete Visualizer - Testing layouts
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _e6hd0O9yEeW7SP0a5rPzzg
Runtime-Version: 2.0.2.201511100828
Save-Time: 4/14/16 8:13 AM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
/*******************************************************************************
* Copyright (c) 2010-2016, Tamas Borbas, IncQuery Labs Ltd.
* 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:
* Tamas Borbas - Testing VIATRA GUI
*******************************************************************************/
get-view "Query Explorer" | get-tree -index 1
| select "\\[platform:\\/resource\\/org.eclipse.viatra.examples.uml.instances\\/empty-classes.uml\\]\\[.*\\]/uml.emptyclass.superClass.*$"
| double-click
get-button "View Menu" | click
with [get-view "Rete Visualizer"] {
get-menu "Layout/Tree" | click
}
get-view "Rete Visualizer" | get-canvas | get-property "getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.TreeLayoutAlgorithm" | verify-true
get-button "View Menu" | click
with [get-view "Rete Visualizer"] {
get-menu "Layout/Spring" | click
}
get-view "Rete Visualizer" | get-canvas | get-property "getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.SpringLayoutAlgorithm" | verify-true
get-button "View Menu" | click
with [get-view "Rete Visualizer"] {
get-menu "Layout/Radial" | click
}
get-view "Rete Visualizer" | get-canvas | get-property "getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.RadialLayoutAlgorithm" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--