| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _YaPKEBouEeWuYb430rX0EA |
| Element-Name: MoveReadOnlyResourceIntoAFolder |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457228 |
| Id: _B1ctgBo5EeWWoJrMH1MOVQ |
| Runtime-Version: 2.2.0.qualifier |
| Save-Time: 5/21/17 2:32 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 |
| -------------------------------------------------------------------------------- |
| |
| ------=_.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 "MyProject/TC1-ReadOnly" | select "MyProject/TC1-ReadOnly" |
| | get-menu Properties | click |
| with [get-window "Properties for TC1-ReadOnly.test"] { |
| get-table | get-button -index 1 | uncheck |
| get-button Apply | click |
| get-button "Apply and Close" | click |
| } |
| with [get-view "Test Explorer" | get-tree] { |
| get-item "MyProject/TC1-ReadOnly" | drag-start 38 5 |
| get-item "MyProject/TC1-ReadOnly" | drag-enter 40 9 -detail move |
| get-item "MyProject/TC1-ReadOnly" | drag-over 39 8 |
| drag-over 88 67 |
| drag-over 82 50 -detail move |
| get-item "MyProject/Folder" | drag-over 28 11 -detail move |
| get-item "MyProject/TC1-ReadOnly" | drag-exit |
| get-item "MyProject/Folder" | drag-accept 28 11 -detail move |
| drag-set-data |
| get-item "MyProject/Folder" | drop 28 11 -detail move |
| } |
| get-window "Read-only Resource Encountered" | get-button No | click |
| with [get-view "Test Explorer" | get-tree] { |
| drag-end -detail move |
| get-item "MyProject/TC1-ReadOnly" | drag-start 9 3 |
| get-item "MyProject/TC1-ReadOnly" | drag-enter 10 8 -detail move |
| get-item "MyProject/Folder" | drag-over 12 8 -detail move |
| get-item "MyProject/TC1-ReadOnly" | drag-exit |
| get-item "MyProject/Folder" | drag-accept 12 8 -detail move |
| drag-set-data |
| get-item "MyProject/Folder" | drop 12 8 -detail move |
| } |
| get-window "Read-only Resource Encountered" | get-button Yes | click |
| with [get-view "Test Explorer" | get-tree] { |
| drag-end -detail move |
| select "MyProject/Folder/TC1-ReadOnly" | select "MyProject/Folder/TC1-ReadOnly" | get-menu Properties | click |
| } |
| get-window "Properties for TC1-ReadOnly.test" | get-table | get-button -index 1 | get-property selected | equals true |
| | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |