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