blob: 9191a38f9e27b5232a23226aa36113d7a3e29c0d [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _LipjoO9FEeWazOws8qE-Nw,_xLFOcO9OEeW7SP0a5rPzzg,_NN2OQO9SEeW7SP0a5rPzzg,_RYkiQO9SEeW7SP0a5rPzzg,_UBBLMO9SEeW7SP0a5rPzzg,_AfewUO91EeW7SP0a5rPzzg
Element-Name: Viewers - Sandbox - Zest Graph (Testing layouts)
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _gnHbIO91EeW7SP0a5rPzzg
Runtime-Version: 2.0.2.201511100828
Save-Time: 4/11/16 2:39 PM
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
*******************************************************************************/
with [get-view "Viewers Sandbox"] {
with [get-group "Activated queries" | get-tree] {
get-item "Item : uml.emptyclass.emptyClass" | uncheck
get-item "Edge : uml.emptyclass.transitiveSuperClass" | uncheck
}
with [get-tab-folder] {
get-tab-item "Zest Graph" | click
get-tab-item Settings | click
}
get-button Apply | click
get-tab-folder | get-tab-item "Zest Graph" | click
}
get-button "View Menu" | click
with [get-view "Viewers Sandbox"] {
get-menu "Layout/Tree" | click
}
get-view "Viewers Sandbox" | get-canvas | get-property "getGraph().getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.TreeLayoutAlgorithm" | verify-true
get-button "View Menu" | click
get-button "View Menu" | click
with [get-view "Viewers Sandbox"] {
get-menu "Layout/Spring" | click
}
get-view "Viewers Sandbox" | get-canvas | get-property "getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.SpringLayoutAlgorithm" | verify-true
get-button "View Menu" | click
with [get-view "Viewers Sandbox"] {
get-menu "Layout/Radial" | click
}
with [get-view "Viewers Sandbox" | get-canvas] {
get-property "getNodes().size()" | equals 3 | verify-true
get-property "getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.RadialLayoutAlgorithm" | verify-true
}
get-button "View Menu" | click
with [get-view "Viewers Sandbox"] {
get-menu "Layout/Sugiyama (unstable)" | click
}
get-view "Viewers Sandbox" | get-canvas | get-property "getLayoutAlgorithm().getClassName()"
| equals "org.eclipse.gef4.layout.algorithms.CompositeLayoutAlgorithm" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--