Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 1 | --- RCPTT testcase --- |
| 2 | Format-Version: 1.0 |
| 3 | Element-Name: NextPreviousCommentAction |
| 4 | Element-Type: testcase |
| 5 | Element-Version: 3.0 |
| 6 | External-Reference: |
| 7 | Id: _yjV7cGU6EeaCA8nt1hTvvg |
| 8 | Runtime-Version: 2.1.0.201605312320 |
Pascal Rapicault | 56eefbf | 2017-01-12 21:52:29 -0500 | [diff] [blame] | 9 | Save-Time: 1/13/17 4:16 PM |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 10 | Testcase-Type: ecl |
| 11 | |
| 12 | ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| 13 | Content-Type: text/plain |
| 14 | Entry-Name: .description |
| 15 | |
| 16 | Test the next comment action |
| 17 | ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| 18 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| 19 | Content-Type: text/ecl |
| 20 | Entry-Name: .content |
| 21 | |
Pascal Rapicault | 2dfa8a0 | 2016-08-18 17:28:18 +0200 | [diff] [blame] | 22 | let [val review [create-review -server $serverURL]] { |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 23 | openCompareEditor $review |
| 24 | } |
| 25 | |
| 26 | // Type a comment and make sure it is colored in yellow |
| 27 | with [get-editor "Compare.*"] { |
Pascal Rapicault | 56eefbf | 2017-01-12 21:52:29 -0500 | [diff] [blame] | 28 | insertComment -on left -text "first comment" -atLine 0 -save |
| 29 | insertComment -on left -text "second comment" -atLine 2 -save |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | with [get-editor "Compare.*"] { |
| 33 | get-button "Go To Next Group of Comment Annotation" | click |
Pascal Rapicault | 56eefbf | 2017-01-12 21:52:29 -0500 | [diff] [blame] | 34 | get-left-editor | assert-that-selected-text -is ".*first comment.*" |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 35 | |
| 36 | get-button "Go To Next Group of Comment Annotation" | click |
Pascal Rapicault | 56eefbf | 2017-01-12 21:52:29 -0500 | [diff] [blame] | 37 | get-left-editor | assert-that-selected-text -is ".*second comment.*" |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 38 | |
| 39 | // Check that we circle through the comments in the same editor |
| 40 | get-button "Go To Next Group of Comment Annotation" | click |
Pascal Rapicault | 56eefbf | 2017-01-12 21:52:29 -0500 | [diff] [blame] | 41 | get-left-editor | assert-that-selected-text -is ".*first comment.*" |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 42 | |
| 43 | // Now use the previous comment button |
| 44 | // Check that we circle through the comments in the same editor |
| 45 | get-button "Go To Previous Group of Comment Annotation" | click |
Pascal Rapicault | 56eefbf | 2017-01-12 21:52:29 -0500 | [diff] [blame] | 46 | get-left-editor | assert-that-selected-text -is ".*second comment.*" |
| 47 | } |
| 48 | |
| 49 | try { |
| 50 | get-editor "Compare.*" | get-button "Swap Left and Right View" | click |
| 51 | |
| 52 | with [get-editor "Compare.*"] { |
| 53 | get-right-editor | assert-that-selected-text -is ".*first comment.*" |
| 54 | |
| 55 | get-button "Go To Next Group of Comment Annotation" | click |
| 56 | get-right-editor | assert-that-selected-text -is ".*second comment.*" |
| 57 | |
| 58 | // Check that we circle through the comments in the same editor |
| 59 | get-button "Go To Next Group of Comment Annotation" | click |
| 60 | get-right-editor | assert-that-selected-text -is ".*first comment.*" |
| 61 | |
| 62 | // Now use the previous comment button |
| 63 | // Check that we circle through the comments in the same editor |
| 64 | get-button "Go To Previous Group of Comment Annotation" | click |
| 65 | get-right-editor | assert-that-selected-text -is ".*second comment.*" |
| 66 | } |
| 67 | } -finally { |
| 68 | get-editor "Compare.*" | get-button "Swap Left and Right View" | click |
Pascal Rapicault | 1528b04 | 2016-08-18 15:22:59 +0200 | [diff] [blame] | 69 | } |
| 70 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |