blob: 3b63143f48ba674e2f5f3861a96b833472dd6794 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_BIzmMMyzEeCKjp0mPLHiEg
Element-Name: NotSaveChangesInContext
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _9iKfQM4pEeCw4ppgsBRMGg
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:04 PM
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
}
}
}
with [get-tab-folder -index 1] {
get-property pages -index 0 | equals "*context1" | verify-true
get-property activePage | equals "*context1" | verify-true
get-property tabCount | equals 1 | 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
with [get-tab-folder -index 1] {
get-property pages -index 0 | equals context1 | verify-true
get-property activePage | equals context1 | verify-true
get-property tabCount | equals 1 | 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--