| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _4zI9AWpgEeCzId1Gnkds9A,_LhMUsNH1EeCvZZdPZOPlnw |
| Element-Name: CloseEditorAtDeletingProject |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: http://jira4.xored.com/browse/QS-1137 |
| Id: _4eVa8OTQEeCcjPHJdTVGPA |
| Runtime-Version: 1.5.0.201407290252 |
| Save-Time: 7/30/14 4:00 PM |
| Tags: Project, Delete, Q7Explorer |
| 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 test |
| 2. Delete folder with this test |
| 3. Make sure that test editor is closed |
| 4. Open test or context |
| 5. Delete project with these objects |
| 6. Make sure that editors are closed |
| ------=_.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 "p2/folder_context/context2" | double-click -nowait |
| with [get-tab-folder -index 1] { |
| get-property activePage | equals context2 | verify-true |
| get-property tabCount | equals 1 | verify-true |
| } |
| get-view "Test Explorer" | get-tree | select "p2/folder_context" | get-menu Delete | click |
| get-window "Delete Resources" | get-button OK | click |
| get-tab-folder | get-property tabCount | equals 0 | verify-true |
| with [get-view "Test Explorer" | get-tree] { |
| select "p1/scenario1" | double-click -nowait |
| select "p1/context1" | double-click -nowait |
| select p1 | get-menu Delete | click |
| } |
| with [get-window "Delete Resources"] { |
| get-button "Delete project contents on disk (cannot be undone)" | click |
| get-button OK | click |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| get-property itemCount | equals 2 | verify-true |
| get-item p2 | get-property caption | equals p2 | verify-true |
| get-item p3 | get-property caption | equals p3 | verify-true |
| } |
| get-tab-folder | get-property tabCount | equals 0 | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |