-
Notifications
You must be signed in to change notification settings - Fork 4
/
ExpandBar_ExpandCollapseTest.test
37 lines (35 loc) · 1.58 KB
/
ExpandBar_ExpandCollapseTest.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
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _2jXpEHTyEeKQnp4qYEvDRA
Element-Name: ExpandBar_ExpandCollapseTest
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _HnJp4Y_JEeOEFrMPLIh-9w
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
get-view "Q7 Quality Mockups" | get-tree | select "swt/expandBar/ExpandBar" | double-click
with [get-view "Q7 Quality Mockups" | get-group ExpandBar | get-expand-bar] {
get-item "What is your favorite button" | get-property expanded | equals true | verify-true
get-item item | get-property expanded | equals true | verify-true
get-item item -index 1 | get-property expanded | equals false | verify-true
}
with [get-view "Q7 Quality Mockups" | get-group ExpandBar | get-expand-bar] {
get-item "What is your favorite button" | collapse
get-item item | collapse
get-item item -index 1 | expand
}
with [get-view "Q7 Quality Mockups" | get-group ExpandBar | get-expand-bar] {
get-item "What is your favorite button" | get-property expanded | equals false | verify-true
get-item item | get-property expanded | equals false | verify-true
get-item item -index 1 | get-property expanded | equals true | verify-true
get-property "items[0].caption" | equals "What is your favorite button" | verify-true
get-property "items[1].caption" | equals item | verify-true
get-property "items[2].caption" | equals item | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--