blob: 571e84722b49f616ef7f40a27bad175a839a3d6a [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,_roqd8KekEeC8_YI4qVLWTA
Element-Name: DeleteFileUriInput
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: __t9-sC9LEeSQ0rUJOTehDQ
Runtime-Version: 1.5.0.201406020630
Save-Time: 8/29/14 2:44 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
get-file "workspace:/FilesForContextEditor/text.txt" | delete-file
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 {
get-file "workspace:/FilesForContextEditor/text.txt" | delete-file
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--