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
|
# $XConsortium: Button1b.scr /main/6 1995/07/17 20:06:21 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
#
# This test ensures that the ArrowButton, PushButton, and ToggleButton
# correctly change visually and stay in the correct state after calls
# to the widgets' action procs.
# The instructions that follow assume you are running with a keyboardFocus
# Policy (not Window Manager Focus) of XmEXPLICIT. If you are running in
# XmPOINTER focus policy, the instructions are not applicible.
# A window with an ArrowButton, a PushButton and a ToggleButton should
# be visible. They should be in a 'disarmed' state.
CompareVisual bulletin
Continue
# The buttons should be armed.
# From the right hand side of the window, move the pointer in to and out of
# each widget in turn: Arrow, PushButton, then ToggleButton. There should be
# NO change when the pointer moves in, but when the pointer moves out of the
# widget, it should disarm.
LocatePointer ToggleButton Off
LocatePointer ArrowButton
CompareVisual ArrowButton
LocatePointer ToggleButton Off
CompareVisual ArrowButton
LocatePointer ToggleButton Off
LocatePointer PushButton
CompareVisual PushButton
LocatePointer ToggleButton Off
CompareVisual PushButton
LocatePointer ToggleButton Off
LocatePointer ToggleButton
CompareVisual ToggleButton
LocatePointer ToggleButton Off
CompareVisual ToggleButton
Continue
# Pass the pointer over all the clients in the test. They should not change
# state.
LocatePointer ArrowButton
CompareVisual ArrowButton
LocatePointer PushButton
CompareVisual PushButton
LocatePointer ToggleButton
CompareVisual ToggleButton
Continue
# No change should have occurred.
CompareVisual bulletin
Exit
|