blob: bf820659acfb980952298a63ba4844e6a8f2d878 [file]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _YaPKEBouEeWuYb430rX0EA
Element-Name: ReadOnly_TryToMakeChangesInReadOnlyVerification
Element-Type: testcase
Element-Version: 3.0
External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457228
Id: _jGWi8Bo4EeWWoJrMH1MOVQ
Runtime-Version: 2.2.0.qualifier
Save-Time: 5/21/17 2:36 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
with [get-view "Test Explorer" | get-tree] {
select "MyProject/Verification - ReadOnly" | select "MyProject/Verification - ReadOnly" | double-click
select "MyProject/Verification - ReadOnly" | get-menu Properties | click
}
with [get-window "Properties for Verification - ReadOnly.verification"] {
get-table | get-button -index 1 | uncheck
get-button Apply | click
get-button "Apply and Close" | click
}
with [get-editor "Verification - ReadOnly" | get-editbox -after [get-label "Tags:"]] {
set-text-offset 0 0
type-text tag
key-type "M1+s"
}
get-window "Read-only Resource Encountered"
| get-label "Resource \"/MyProject/Verification - ReadOnly.verification\" is read-only. Do you wish to make it writable?"
| get-property caption
| equals "Resource \"/MyProject/Verification - ReadOnly.verification\" is read-only. Do you wish to make it writable?"
| verify-true
get-window "Read-only Resource Encountered" | get-button No | click
get-editor "Verification - ReadOnly" | close
get-window "Save Resource" | get-button "Don't Save" | click
get-view "Test Explorer" | get-tree | select "MyProject/Verification - ReadOnly"
| select "MyProject/Verification - ReadOnly" | double-click
get-editor "Verification - ReadOnly" | get-editbox -after [get-label "Tags:"] | get-property text | equals ""
| verify-true
with [get-editor "Verification - ReadOnly" | get-editbox -after [get-label "Tags:"]] {
set-text-offset 0 0
type-text tag
key-type "M1+s"
}
get-window "Read-only Resource Encountered" | get-button Yes | click
get-editor "Verification - ReadOnly" | close
get-view "Test Explorer" | get-tree | select "MyProject/Verification - ReadOnly"
| select "MyProject/Verification - ReadOnly" | double-click
get-editor "Verification - ReadOnly" | get-editbox -after [get-label "Tags:"] | get-property text | equals tag
| verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--