blob: 2c0e122e231046e0a939268597217c5dd8835a90 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: DeleteFileFromBase
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _8IdZgKCsEea_cdUF3tDi1A
Runtime-Version: 2.1.0.201605312320
Save-Time: 3/7/17 3:24 PM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
try {
add-gerrit-server -serverURL "https://git.eclipse.org/r" -serverName EF -userName ""
openCompareEditor 83696 -serverName EF
with [get-editor "Compare.*"] {
switchLeftInput -to "3.*"
switchRightInput -to "BASE"
assert-that-status-in-compare -atLine 1 -is "D"
assert-that-filename-in-compare -atLine 1 -is "FilterHistory.test - org.eclipse.egerrit.ui.rcptt.tests/reviewEditor"
verify-error {
assert-that-left-editor-content -is "Element-Name: FilterHistory"
}
assert-that-right-editor-content -is "Element-Name: FilterHistory"
}
with [get-editor "Compare.*"] {
switchLeftInput -to "BASE"
switchRightInput -to "3.*"
assert-that-status-in-compare -atLine 1 -is "D"
assert-that-filename-in-compare -atLine 1 -is "FilterHistory.test - org.eclipse.egerrit.ui.rcptt.tests/reviewEditor"
assert-that-left-editor-content -is "Element-Name: FilterHistory"
verify-error {
assert-that-right-editor-content -is "Element-Name: FilterHistory"
}
}
with [get-editor "Compare.*"] {
switchLeftInput -to "1.*"
switchRightInput -to "3.*"
assert-that-status-in-compare -atLine 1 -is "A"
assert-that-filename-in-compare -atLine 1 -is "FilterHistory.test - org.eclipse.egerrit.ui.rcptt.tests/reviewEditor"
assert-that-left-editor-content -is "Element-Name: FilterHistory"
verify-error {
assert-that-right-editor-content -is "Element-Name: FilterHistory"
}
}
} -finally {
remove-gerrit-server -serverName EF
}
with [get-editor "Compare 83696 - Remove test for filters in Historytab -- Patch set1 / Patch set3"] {
get-label "Patch Set 3: FilterHistory.test" | get-property caption | equals "Patch Set 3: FilterHistory.test"
| verify-true
get-label "Patch Set 1: FilterHistory.test" | get-property caption | equals "Patch Set 1: FilterHistory.test"
| verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--