blob: 166737bc6c35090f870bc036dd1670fbdf9e6fec [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _qy4DwH_5EeK9FdRInrmHdQ,_DyPzwH_sEeKzh4ksbY4F-Q,_-teIQIrhEeKFictDEDHejA
Element-Name: QS-1204_Excessive "show-content-assist" line while asserting completion proposals
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _KD4VIIYnEeKI6L5Mk5N07A
Save-Time: 7/15/13 5:05 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
While asserting completion proposals in Class file, we get the following:
with [get-editor "Test.java" | get-editbox] { set-text-offset 0 9 type-text "system." show-content-assist }
That causes the test failure.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Q7 Explorer" | get-tree | select [get-item Q7Project | get-item JavaProjectWithClass -index 1] | double-click
get-editor JavaProjectWithClass | get-button Record | click
get-aut "Papyrus" | eval{
with [get-editor "Class1.java" | get-text-viewer] {
set-caret-pos 9 1
}
}
//exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args "-r \"C:\\Users\\bamboo\\Documents\\SikuliTests\\ContentAssist.sikuli\" -s" -ignoreExitCode
//exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args [substitute-variables "-r \"${resource_loc:sikuli/ContentAssist.sikuli}\" -s"] -ignoreExitCode
exec-process "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"""-r" [substitute-variables "\"${resource_loc:sikuli/ContentAssist.sikuli}\""]"-s"-ignoreExitCode
get-window "Q7 Control Panel.*" | get-button Stop | click
get-window "Q7 Control Panel.*" | get-editbox | get-property text
| equals "with [get-editor \"Class1.java\" | get-text-viewer] {\n"
+ " set-caret-pos 9 1\n"
+ " type-text \"system.\"\n"
+ " show-content-assist\n}\n"
+ "get-window -from \"CompletionProposalPopup.createProposalSelector()\" | get-table \n"
+ " | select \"out : PrintStream - java.lang.System\" | click -default" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--