/
ExpandableComposite_BaseTest.test
40 lines (38 loc) · 2.02 KB
/
ExpandableComposite_BaseTest.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
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _2jXpEHTyEeKQnp4qYEvDRA
Element-Name: ExpandableComposite_BaseTest
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _h9xJ0KdBEeKVxpzXv84wSw
Runtime-Version: 1.5.6.qualifier
Save-Time: 4/1/15 11:59 AM
Tags: eclipse_forms
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Q7 Quality Mockups" | get-tree | select "eclipse/form/ExpandableComposite"
with [get-view "Q7 Quality Mockups" | get-group ExpandableComposite | get-section ExpandableComposite] {
get-property className | equals "org.eclipse.ui.forms.widgets.ExpandableComposite" | verify-true
get-property "getClient().getText()"
| equals "We will now create a somewhat long text so that we can use it as content for the expandable composite. Expandable composite is used to hide or show the text using the toggle control"
| verify-true
get-property "getText()" | equals ExpandableComposite | verify-true
}
with [get-view "Q7 Quality Mockups" | get-group ExpandableComposite] {
get-section ExpandableComposite | get-property "isExpanded()" | equals false | verify-true
with [get-section TwistieExpandableComposite] {
get-property className | equals "org.eclipse.ui.forms.widgets.ExpandableComposite" | verify-true
get-property "getClient().getText()" | equals "This is a text of expandable twistie composite" | verify-true
get-property "isExpanded()" | equals false | verify-true
get-property "getText()" | equals TwistieExpandableComposite | verify-true
}
with [get-section -after [get-label "Expandable Composite Mockup"] -index 2] {
get-property className | equals "org.eclipse.ui.forms.widgets.ExpandableComposite" | verify-true
get-property "getClient().getText()" | equals "This is a text of expandable no title composite" | verify-true
get-property "isExpanded()" | equals true | verify-true
}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--