| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Contexts: _Ayow4KrpEeqpkej7GeVvKQ,_d8d2kKyFEeqylZAj0d4Xnw |
| Element-Name: QuickOutline |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _J_EEgMHwEeqdUaKnTsb96Q |
| Save-Time: 5/26/21 4:35 PM |
| Testcase-Type: ecl |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-view "Package Explorer" | get-tree | select "test/src/test/test.mtl" | double-click |
| with [get-editor "test.mtl" | get-text-viewer] { |
| set-caret-pos 5 1 |
| key-type "M1+o" |
| } |
| wait 500 |
| get-window -class LSPSymbolInFileDialog | get-tree | select "myTemplate\\(ecore::EPackage\\) : String" | double-click |
| with [get-window -class LSPSymbolInFileDialog | get-tree] { |
| get-property "getItems().length" | equals 2 | verify-true |
| get-property "getItems().TreeItem[0].getText()" | equals "ecore : http://www.eclipse.org/emf/2002/Ecore" |
| | verify-true |
| get-property "getItems().TreeItem[1].getText()" | equals "myTemplate(ecore::EPackage) : String" | verify-true |
| } |
| get-editor "test.mtl" | get-text-viewer | get-property "getSelectionText()" |
| | equals "[template public myTemplate(myParam : ecore::EPackage)]\n" |
| + " [file (myParam.name + '.txt', overwrite)]\n" |
| + " - [for (myVariable1 : ecore::EClassifier | myParam.eClassifiers)]\n" |
| + " some text [myVariable1.name/]\n" |
| + " [myVariable1.myOtherTemplate()/]\n" |
| + " some text [myVariable1.name.getMessage()/]\n" |
| + " [/for]\n" |
| + " [myParam.eClassifiers.name.getMessage()/]\n" |
| + " [/file]\n" |
| + "[/template]" | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |