| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Element-Name: SwapSide |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _20oJoJFcEeao6uC_QxpwZQ |
| Runtime-Version: 2.1.0.201605312320 |
| Save-Time: 10/13/16 12:12 PM |
| Testcase-Type: ecl |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| let [val review [amend-review -review [create-review -server $serverURL]]] { |
| openCompareEditor $review |
| } |
| |
| with [get-editor "Compare.*"] { |
| assert-that-left-selected-patch -is BASE |
| assert-that-right-selected-patch -is "Patch set 2" |
| assert-that-left-editor-content -is "" |
| assert-that-right-editor-content -is "Hello reviewers {community} !" |
| } |
| |
| try { |
| get-editor "Compare.*" | get-button "Swap Left and Right View" | click |
| |
| with [get-editor "Compare.*"] { |
| assert-that-right-selected-patch -is BASE |
| assert-that-left-selected-patch -is "Patch set 2" |
| assert-that-right-editor-content -is "" |
| assert-that-left-editor-content -is "Hello reviewers {community} !" |
| } |
| } -catch { |
| // The swap button does not exists in this version of eclipse |
| } -finally { |
| // Make sure to reset the swap button |
| try { |
| get-editor "Compare.*" | get-button "Swap Left and Right View" | click |
| } -catch { |
| // The swap button does not exists in this version of eclipse |
| } |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |