blob: 7dcffaad65d7df5ba76e88fd71e7830bcd6af68f [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _4zI9AWpgEeCzId1Gnkds9A,_ZQYygK2sEeCqBbDEJWufvQ,_94O7wOfZEeCButSfkA0tsQ
Element-Name: MinimalSave
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _QHVj4FIFEemjBJN59BhClQ
Runtime-Version: 2.4.1.qualifier
Save-Time: 3/29/19 6:20 PM
Tags: selfAUT, Context, WorkbenchContext, 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. Open Workbench context with editor
2. Modify
3. Ensure save button is enabled
3. Save
4. Ensure dirty flag is removed
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
log "Show WB_test editor"
get-view "Test Explorer" | get-tree | select "ContextsProject/WB_test" | double-click
log "WB_test editor is ready"
get-editor "WB_test" | get-text-viewer | key-type "TRAVERSE_PAGE_PREVIOUS"
get-editor "WB_test" | get-section Editors | get-button "Add..." | click
with [get-window "Select file path" | get-tree] {
get-property itemCount | equals 2 | verify-true
get-item "WS_template" | get-property caption | equals "WS_template" | verify-true
}
with [get-window "Select file path"] {
get-tree | select "WS_template/project1/text.txt"
get-button OK | click
}
get-editor "WB_test" | get-section Editors | get-table | get-property itemCount | equals 1 | verify-true
log "Save WB_test editor"
get-button "Save.*" | click
log "After WB_test editor save"
take-screenshot "After save"
get-editor "WB_test" | get-property dirty | equals false | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--