-
Notifications
You must be signed in to change notification settings - Fork 4
/
ScrolledCompositeTest.test
67 lines (65 loc) · 2.52 KB
/
ScrolledCompositeTest.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _2jXpEHTyEeKQnp4qYEvDRA
Element-Name: ScrolledCompositeTest
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _OKsw8JqpEeKUTbHlS7Hh6Q
Runtime-Version: 1.5.6.qualifier
Save-Time: 4/1/15 12:04 PM
Tags: swt
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-view "Q7 Quality Mockups"] {
get-tree | select "swt/composite/ScrolledComposite Test" | double-click
with [get-group "ScrolledComposite Test"] {
with [get-button "add children"] {
click
click
click
click
click
}
get-button "button 2" | click
}
}
get-view "Q7 Quality Mockups" | get-group "ScrolledComposite Test" | get-editbox | get-property text
| equals "button 2" | verify-true
with [get-view "Q7 Quality Mockups" | get-group "ScrolledComposite Test"] {
with [get-button "first button"] {
click
key-type "TRAVERSE_TAB_NEXT"
}
get-button "button 1" | key-type "TRAVERSE_TAB_NEXT"
get-button "button 2" | key-type "TRAVERSE_TAB_NEXT"
get-button "button 3" | key-type "TRAVERSE_TAB_NEXT"
get-button "button 4" | key-type "TRAVERSE_TAB_NEXT"
get-button "button 5" | click
}
get-view "Q7 Quality Mockups" | get-group "ScrolledComposite Test" | get-editbox | get-property text
| equals "button 5" | verify-true
with [get-view "Q7 Quality Mockups" | get-group "ScrolledComposite Test"] {
with [get-button "first button"] {
click
key-type "TRAVERSE_ARROW_NEXT"
}
get-button "button 1" | key-type "TRAVERSE_ARROW_NEXT"
get-button "button 2" | key-type "TRAVERSE_ARROW_NEXT"
get-button "button 3" | key-type "TRAVERSE_ARROW_NEXT"
get-button "button 4" | click
}
with [get-view "Q7 Quality Mockups" | get-group "ScrolledComposite Test"] {
get-editbox | get-property text | equals "button 4" | verify-true
with [get-control Any -index 2] {
get-property "getParent().getHorizontalBar().getClassName()" | equals "org.eclipse.swt.widgets.ScrollBar"
| verify-true
get-property "getParent().getHorizontalBar().getStyle()" | equals "[HORIZONTAL]" | verify-true
get-property "getParent().getVerticalBar().getClassName()" | equals "org.eclipse.swt.widgets.ScrollBar"
| verify-true
get-property "getParent().getVerticalBar().getStyle()" | equals "[VERTICAL]" | verify-true
}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--