blob: ee9feca08d21fff8fe4d6e9b9e15967c8f1f3c77 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_roqd8KekEeC8_YI4qVLWTA
Element-Name: DeleteFile
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Ntb8ACkyEeSQyvXPk2B9Hw
Runtime-Version: 1.5.0.201406020630
Save-Time: 8/29/14 2:29 PM
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
--------------------------------------------------------------------------------
TEST STEPS:
1. Execute command "delete-file"
2. Make sure that file is deleted
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
delete-file [concat [uri-from-path [substitute-variables "${workspace_loc}"]] "FilesForContextEditor/text.txt"]
get-view "Test Explorer" | get-tree | get-item FilesForContextEditor | get-property childCount | equals 2 | verify-true
get-view "Test Explorer" | get-tree | select FilesForContextEditor | get-menu Refresh | click
get-view "Test Explorer" | get-tree | get-item FilesForContextEditor | get-property childCount | equals 1 | verify-true
with [get-view "Test Explorer" | get-tree] {
get-item "FilesForContextEditor/folder" | get-property caption | equals folder | verify-true
verify-error {
get-item "FilesForContextEditor/text.txt"
}
}
verify-error {
delete-file [concat [uri-from-path [substitute-variables "${workspace_loc}"]] "FilesForContextEditor/text.txt"]
}
verify-error {
delete-file [substitute-variables "${workspace_loc}/FilesForContextEditor/text.txt"]
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--