blob: d5c3a892e9808fa4c9a1b572602484062b73565f [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_BIzmMMyzEeCKjp0mPLHiEg
Element-Name: NotSaveChangesInContext
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _9iKfQM4pEeCw4ppgsBRMGg
Runtime-Version: 1.5.3.201409120955
Save-Time: 9/22/14 10:49 AM
Tags: Context, WorkspaceContext, Create
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Copyright (c) 2009, 2014 Xored Software Inc and others.
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:
Xored Software Inc - initial creation and/or initial documentation
--------------------------------------------------------------------------------
1. Make changes in Context Editor
2. Close this context editor
3. Press "No" in "Save Resources" window
4. Make sure that changes are not saved
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Test Explorer" | get-tree | select "Q7Project/context1" | double-click -nowait
with [get-editor context1] {
with [get-section Description] {
click -nowait
with [get-editbox] {
set-text test
key-type "M1+s"
}
}
get-editbox -after [get-label "Tags:"] | set-text test
get-section Description | get-editbox | set-text "test on the changing"
get-section "Workspace Options" | get-button "Clear workspace" | click
with [get-section Workspace] {
get-button "Create Empty Project" | click
with [get-tree] {
select project1 | activate-cell-edit
apply-cell-edit
}
get-button "Create Empty Folder" | click
with [get-tree] {
select "project1/folder1" | activate-cell-edit
apply-cell-edit
}
get-button "Create Empty Folder" | click
with [get-tree] {
select "project1/folder1/folder1" | activate-cell-edit
apply-cell-edit
}
}
}
get-editor context1 | get-property dirty | equals true | verify-true
get-editor context1 | close
get-window "Save Resource" | get-label "\'context1\' has been modified. Save changes?" | get-property caption
| equals "\'context1\' has been modified. Save changes?" | verify-true
get-window "Save Resource" | get-button No | click
get-view "Test Explorer" | click -nowait
get-view "Test Explorer" | get-tree | select "Q7Project/context1" | double-click -nowait
get-editor context1 | get-property dirty | equals false | verify-true
with [get-editor context1] {
get-editbox -after [get-label "Tags:"] | get-property value | equals "" | verify-true
with [get-section "Workspace Options"] {
with [get-button "Clear workspace"] {
get-property caption | equals "Clear workspace" | verify-true
get-property selected | equals true | verify-true
}
}
get-section Workspace | get-tree | get-property itemCount | equals 0 | verify-true
}
get-editor context1 | get-section Description | click -nowait
get-editor context1 | get-section Description | get-editbox | get-property rawValue | equals test | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--