| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA,_qnJKwO8aEeCWFp5-_cxtIw |
| Element-Name: CancelAddingSinglePreferenceValueInContext |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _CquO8HP2EeGvCok4Kd3cWg |
| Q7-Runtime-Version: 1.5.0.201406131029 |
| Save-Time: 6/13/14 7:04 PM |
| Tags: feature/context/preferenceContext |
| 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. Open Preferences Context |
| 2. Press "Add" button |
| 3. Enter preference value in the correct syntax |
| 4. Press "Cancel" button |
| 5. Make sure that new value is not added |
| ------=_.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 "Q7Project/PreferenceContext" | double-click |
| select "Q7Project/EmptyPreferenceContext" | double-click |
| } |
| get-editor EmptyPreferenceContext | get-section Preferences | get-button "Add..." | click |
| get-window "Add Preferences" | get-editbox -after [get-label "Preferences to add:"] | set-text "/tru/false/key=value" |
| get-window "Add Preferences" | get-button Finish | get-property enablement | equals true | verify-true |
| get-window "Add Preferences" | get-button Cancel | click |
| get-editor EmptyPreferenceContext | get-section Preferences | get-tree | get-property itemCount | equals 0 | verify-true |
| get-editor EmptyPreferenceContext | get-section Preferences | get-button "Add..." | click |
| with [get-window "Add Preferences"] { |
| get-editbox -after [get-label "Preferences to add:"] | set-text "\\tru\\false" |
| get-button Finish | click |
| } |
| get-editor EmptyPreferenceContext | get-section Preferences | get-tree | get-property itemCount | equals 0 | verify-true |
| with [get-editor PreferenceContext] { |
| click |
| get-section Preferences | get-button "Add..." | click |
| } |
| get-window "Add Preferences" | get-editbox -after [get-label "Preferences to add:"] |
| | set-text "/bundle_defaults/test.name/key=value" |
| get-window "Add Preferences" | get-editbox -after [get-label "Preferences to add:"] | get-property text |
| | equals "/bundle_defaults/test.name/key=value" | verify-true |
| get-window "Add Preferences" | get-button Cancel | click |
| get-editor PreferenceContext | get-section Preferences | get-tree | get-property itemCount | equals 5 | verify-true |
| with [get-editor PreferenceContext | get-section Preferences | get-tree] { |
| get-item "bundle_defaults" | get-property childCount | equals 9 | verify-true |
| get-item "bundle_defaults/org.eclipse.core.resources" | get-property caption | equals "org.eclipse.core.resources" |
| | verify-true |
| get-item "bundle_defaults/org.eclipse.debug.core" | get-property caption | equals "org.eclipse.debug.core" |
| | verify-true |
| get-item "bundle_defaults/org.eclipse.equinox.p2.ui.sdk.scheduler" | get-property caption |
| | equals "org.eclipse.equinox.p2.ui.sdk.scheduler" | verify-true |
| get-item "bundle_defaults/org.eclipse.jdt.core" | get-property caption | equals "org.eclipse.jdt.core" | verify-true |
| get-item "bundle_defaults/org.eclipse.jdt.ui" | get-property caption | equals "org.eclipse.jdt.ui" | verify-true |
| get-item "bundle_defaults/org.eclipse.ui" | get-property caption | equals "org.eclipse.ui" | verify-true |
| get-item "bundle_defaults/org.eclipse.ui.ide" | get-property caption | equals "org.eclipse.ui.ide" | verify-true |
| get-item "bundle_defaults/org.eclipse.ui.workbench" | get-property caption | equals "org.eclipse.ui.workbench" |
| | verify-true |
| get-item "bundle_defaults/org.eclipse.update.scheduler" | get-property caption |
| | equals "org.eclipse.update.scheduler" | verify-true |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |