blob: 65a9736dd0c5b12b1f795eb98d24a7d4070a9046 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: NextPreviousCommentAction
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _yjV7cGU6EeaCA8nt1hTvvg
Runtime-Version: 2.1.0.201605312320
Save-Time: 1/13/17 4:16 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Test the next comment action
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
let [val review [create-review -server $serverURL]] {
openCompareEditor $review
}
// Type a comment and make sure it is colored in yellow
with [get-editor "Compare.*"] {
insertComment -on left -text "first comment" -atLine 0 -save
insertComment -on left -text "second comment" -atLine 2 -save
}
with [get-editor "Compare.*"] {
get-button "Go To Next Group of Comment Annotation" | click
get-left-editor | assert-that-selected-text -is ".*first comment.*"
get-button "Go To Next Group of Comment Annotation" | click
get-left-editor | assert-that-selected-text -is ".*second comment.*"
// Check that we circle through the comments in the same editor
get-button "Go To Next Group of Comment Annotation" | click
get-left-editor | assert-that-selected-text -is ".*first comment.*"
// Now use the previous comment button
// Check that we circle through the comments in the same editor
get-button "Go To Previous Group of Comment Annotation" | click
get-left-editor | assert-that-selected-text -is ".*second comment.*"
}
try {
get-editor "Compare.*" | get-button "Swap Left and Right View" | click
with [get-editor "Compare.*"] {
get-right-editor | assert-that-selected-text -is ".*first comment.*"
get-button "Go To Next Group of Comment Annotation" | click
get-right-editor | assert-that-selected-text -is ".*second comment.*"
// Check that we circle through the comments in the same editor
get-button "Go To Next Group of Comment Annotation" | click
get-right-editor | assert-that-selected-text -is ".*first comment.*"
// Now use the previous comment button
// Check that we circle through the comments in the same editor
get-button "Go To Previous Group of Comment Annotation" | click
get-right-editor | assert-that-selected-text -is ".*second comment.*"
}
} -finally {
get-editor "Compare.*" | get-button "Swap Left and Right View" | click
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--