File: Text4.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 (93 lines) | stat: -rw-r--r-- 2,878 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
# $XConsortium: Text4.scr /main/6 1995/07/17 20:41:56 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
# 

#  #) Give the test window the focus. A red border appears around the
#     top text widget.
#     The insertion cursor appears but does not blink.
#  /* this shows PIR 3143 */
#  #) Hold down the Shift key, and press the down arrow three times. 
#  This creates a
#  primary selection.
LocatePointer Text1 RTextChar 5
ClickKey <Shift> KDown
ClickKey <Shift> KDown
ClickKey <Shift> KDown
CompareVisual Text1

#  #) Press the up-arrow key twice, without the Shift key depressed.
#  The insertion cursor moves
#  back to the second line and no text is selected. You should not see more than
#  1 insertion cursor.
ClickKey KUp
ClickKey KUp
CompareVisual Text1

#  C)
Continue

#  #) Press the Ctrl-<Tab>. The focus moves to 
#     the bottom text widget and a red border appears around it.
#     Another message "losingFocusCallback Received" appears in the xterm window
#     By now, there should be at least two such messages.
LocatePointer Text1 RTextChar 5
ClickKey <Ctrl> KTab
CompareVisual Text2

#  #) In this text widget, the insertion cursor blinks.
#     Move the cursor with both keyboard and mouse, and verify that the
#     position printed out in the stdout window is correct.
#     (It should be easy to tell based on the string\!)
ClickKey KRight
ClickKey KRight
ClickKey KRight
ClickKey KLeft
ClickKey KLeft
LocatePointer Text2 RTextChar 2
ClickMB Btn1
LocatePointer Text2 RTextChar 7
ClickMB Btn1
LocatePointer Text2 RTextChar 9
ClickMB Btn1

#  #) Press <Tab>. The highlight appears around the top push button.
ClickKey KTab
CompareVisual PButton1

#  #) Press the space bar, and the push button is pressed.
ClickKey KSpace

#  #) Press Shift-<Tab> twice to return to the top text widget.
ClickKey <Shift> KTab
ClickKey <Shift> KTab
CompareVisual Text1

#  #) Type a long string and the text widget should grow to accommodate it.
InputString "A long string to make the widget grow."
CompareVisual Text1

#  E)
Exit