blob: 5cee351f9f64d587f60fe42565ff010708c4ace3 [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _rr2EEFpSEeKcnaHGSt8OwA,_f3qEUVpSEeKcnaHGSt8OwA,_IuFcgFpZEeKcnaHGSt8OwA,_qKLa8G60EeKbTKOCBYPcow
Element-Name: Revert
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _IxCU4G7IEeKbTKOCBYPcow
Save-Time: 3/24/13 8:50 PM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]"
get-view "Model Explorer" | get-tree | get-menu "Revert All Operations" | get-property enablement | equals false
| verify-true
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]/League America" | double-click
get-editor "League America" | get-editbox -after [get-label Name] | set-text America2
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]/League Europe" | double-click
get-editor "League Europe" | get-editbox -after [get-label Name] | set-text Europe2
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]"
get-view "Model Explorer" | get-tree | get-menu "Revert All Operations" | get-property enablement | equals true
| verify-true
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]" | get-menu "Revert All Operations" | click
get-window Confirmation | get-label "Do you really want to revert all your changes on project TestProject?"
| get-property caption | equals "Do you really want to revert all your changes on project TestProject?"
| verify-true
get-window Confirmation | get-button Yes | click
get-window Revert | get-button OK | click
with [get-view "Model Explorer" | get-tree] {
get-item "TestProject \\[trunk, Version 0\\]/League America" | get-property caption | equals "League America" | verify-true
get-item "TestProject \\[trunk, Version 0\\]/League Europe" | get-property caption | equals "League Europe" | verify-true
}
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]"
get-view "Model Explorer" | get-tree | get-menu "Revert All Operations" | get-property enablement | equals false
| verify-true
with [get-view "Model Explorer" | get-tree] {
select "TestProject \\[trunk, Version 0\\]/League America" | double-click
select "TestProject \\[trunk, Version 0\\]/League America/Player Maximilian"
}
get-editor "League America" | get-editbox -after [get-label Name] | set-text America3
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]/League Europe" | key-type ESC -times 2
get-editor "League Europe" | get-editbox -after [get-label Name] | set-text Europe3
get-view "Model Explorer" | get-tree | select "TestProject \\[trunk, Version 0\\]" | get-menu "Revert All Operations" | click
get-window Confirmation | get-button No | click
with [get-view "Model Explorer" | get-tree] {
get-item "TestProject \\[trunk, Version 0\\]/League America3" | get-property caption | equals "League America3" | verify-true
get-item "TestProject \\[trunk, Version 0\\]/League Europe3" | get-property caption | equals "League Europe3" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--