| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _ymiyse5IEeCU6db9MgIBkA |
| Element-Name: ECLEditor |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=448032 |
| Id: _a1qxsVkCEeSBqZKvRVPZsw |
| Runtime-Version: 2.2.0.qualifier |
| Save-Time: 5/21/17 2:27 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 |
| -------------------------------------------------------------------------------- |
| |
| TEST STEPS: |
| |
| 1. Open Preferences/RCP Testing Tool/ECL Editor; |
| 2. Change preferences, click "OK"; |
| 3. Open again and make sure that preferences are changed; |
| 4. Click "Restore Defaults", check that preferences are reset and then click "OK"; |
| 5. Open again and make sure that preferences are reset; |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| // 1-2. Changes |
| get-preferences-menu | click |
| with [get-window Preferences] { |
| with [get-tree] { |
| select "RCP Testing Tool" | double-click |
| select "RCP Testing Tool/ECL Editor" |
| } |
| get-editbox -after [get-label "Maximum line width"] | set-text 80 |
| get-editbox -after [get-label "Indentation size"] | set-text 8 |
| get-button "Apply and Close" | click |
| } |
| |
| // 3. Checks changes |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "RCP Testing Tool/ECL Editor" |
| get-window Preferences | get-editbox -after [get-label "Maximum line width"] | get-property text | equals 80 |
| | verify-true |
| get-window Preferences | get-editbox -after [get-label "Indentation size"] | get-property text | equals 8 |
| | verify-true |
| |
| // 4. Restores defaults |
| get-window Preferences | get-button "Restore Defaults" | click |
| get-window Preferences | get-editbox -after [get-label "Maximum line width"] | get-property text | equals 120 |
| | verify-true |
| get-window Preferences | get-editbox -after [get-label "Indentation size"] | get-property text | equals 4 |
| | verify-true |
| get-window Preferences | get-button "Apply and Close" | click |
| |
| // 5. Checks changes |
| get-preferences-menu | click |
| get-window Preferences | get-tree | select "RCP Testing Tool/ECL Editor" |
| get-window Preferences | get-editbox -after [get-label "Maximum line width"] | get-property text | equals 120 |
| | verify-true |
| get-window Preferences | get-editbox -after [get-label "Indentation size"] | get-property text | equals 4 |
| | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |