File: Text10.scr

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (138 lines) | stat: -rw-r--r-- 3,978 bytes parent folder | download | duplicates (3)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# $XConsortium: Text10.scr /main/6 1995/07/17 20:41:19 drk $
# 
# Motif
#
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
#
# These libraries and programs are free software; you can
# redistribute them and/or modify them under the terms of the GNU
# Lesser General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# These libraries and programs are distributed in the hope that
# they will be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with these librararies and programs; if not, write
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301 USA
# 
# 
# HISTORY
# 

#  /* test case for PIR 3317 */
#  @) Two text widgets were created using the helvetica1 font.
#  #) Click on the helvetica2 font to change both widgets to the larger font.
#  Both widgets should grow in width but their columns should remain
#  unchanged.  The width and column data is displayed in the stdout window.
LocatePointer RB1_helv2
ClickMB Btn1
CompareVisual Shell1

#  #) Click on the helvetica1 font to change the widgets back to the
#  smaller font.  Both widgets should shrink in width and keep the
#  same column count.
#  /* end of test case for PIR 3317 */
LocatePointer RB1_helv1
ClickMB Btn1
CompareVisual Shell1

#  C)
Continue

#  PIR CLOSED, test case is invalid
#  #  /* test case for PIR 3753 */
#  #  #) Press and hold MB1 on the helvetica2 ToggleButton.  While it is 
#  #  being held, the font should change for the text widget.
#  LocatePointer RB1_helv2
#  PressMB Btn1
#  System sleep 1
#  
#  #  #) Without moving the mouse, release MB1.  Confirm that the ToggleButton
#  #  indicator for the helvetica2 button appears depressed and all other
#  #  ToggleButtons do not.
#  ReleaseMB Btn1
#  
#  #  #) Press and hold MB1 on the helvetica3 ToggleButton.  While it is
#  #  being held, the font should change again for the text widget.
#  LocatePointer RB1_helv3
#  PressMB Btn1
#  System sleep1
#  
#  #  #) Move the pointer outside the test window and release the MB1.
#  #  The ToggleButton indicator for the helvetica2 button should still appear
#  #  depressed and the indicator for helvetica3 should not.
#  LocatePointer RB1_helv3 Off
#  ReleaseMB Btn1
#  
#  #  /* end of test case for PIR 3753 */
#  #  C)
#
# Continue

#/* test case for PIR 2648 */
#@) A resizable Text widget is displayed.
#@) The following resources have been set:
#!)     XmNrows = 3
#!)     XmNcolumns = 20

#@) The text displayed in the widget should consist of, one row of numbers,
#one row of the letter "m" and one row of the number "0".

##) Select the first fontname in the radiobox.
##) Verify that there are at least twenty characters displayed in the
#text widget. This can be done by clicking MB1 at the beginning of
#a row of text and then clicking KRight counting each of characters
#until the end of the row.
##) Repeat the above test for each of the fonts in the radiobox.

## count the helvetica1 font
CompareVisual Text1

## count the helvetica2 font
LocatePointer RB1_helv2
ClickMB Btn1
CompareVisual Text1

## count the helvetica3 font
LocatePointer RB1_helv3
ClickMB Btn1
CompareVisual Text1

## count the 6x12 font
LocatePointer RB1_6x12
ClickMB Btn1
CompareVisual Text1

## count the 9x15 font
LocatePointer RB1_9x15
ClickMB Btn1
CompareVisual Text1

## count the courier1 font
LocatePointer RB1_cour1
ClickMB Btn1
CompareVisual Text1

## count the courier2 font
LocatePointer RB1_cour2
ClickMB Btn1
CompareVisual Text1

## count the times1 font
LocatePointer RB1_times1
ClickMB Btn1
CompareVisual Text1

## count the times2 font
LocatePointer RB1_times2
ClickMB Btn1
CompareVisual Text1

#  E)
Exit