Blob Blame History Raw
# $XConsortium: PanedWin12.scr /main/4 1995/07/17 20:32:47 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


#   A client with a Paned Window with ten pushbuttons will appear.
#   Each pane should be the same size.  Each button will have a label
#   consisting of PB plus two numbers separated by a colon.  The first
#   number indicates the order in which the buttons were created.  The
#   second number represents the value used to sort the buttons.  The buttons
#   should be sorted from top to bottom in descending order.

CompareVisual PW
Continue

#) A panedwindow with 4 push buttons should appear, PB1, PB2, PB3 and PB4.

CompareVisual PW
Continue

#) PB4 should have moved to before PB1.
#) The Xterm window should show that XtGetValues of PB4 returns a value of 0.

CompareVisual PW
Continue

#) PB3 should have moved to after PB4 and before PB2.
#) The Xterm window should show that XtGetValues of PB3 returns a value of 1.

CompareVisual PW
Continue

#) A new push button, PB5, should have been added to the end.
#) The Xterm window should show that XtGetValues of PB5 returns a value of 4.

CompareVisual PW
Continue

#) The fifth button has had its position set to 7, an invalid value.
# No core dumps or change should have occurred.
#) The Xterm window should show that XtGetValues of PB5 returns a value of 4.

CompareVisual PW
Continue

#) PB4 has had its index set to -2. No change should occur.
#) XtGetValues of PB4 should return a value of 0.

CompareVisual PW
Exit