|
Packit |
b099d7 |
/* $XConsortium: MwmUI3.dat /main/4 1995/07/17 10:26:29 drk $ */
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* Motif
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* These libraries and programs are free software; you can
|
|
Packit |
b099d7 |
* redistribute them and/or modify them under the terms of the GNU
|
|
Packit |
b099d7 |
* Lesser General Public License as published by the Free Software
|
|
Packit |
b099d7 |
* Foundation; either version 2 of the License, or (at your option)
|
|
Packit |
b099d7 |
* any later version.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* These libraries and programs are distributed in the hope that
|
|
Packit |
b099d7 |
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
Packit |
b099d7 |
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
Packit |
b099d7 |
* PURPOSE. See the GNU Lesser General Public License for more
|
|
Packit |
b099d7 |
* details.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
b099d7 |
* License along with these librararies and programs; if not, write
|
|
Packit |
b099d7 |
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
Packit |
b099d7 |
* Floor, Boston, MA 02110-1301 USA
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* HISTORY
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This is the MwmUI3 test.
|
|
Packit |
b099d7 |
#) There should be an iconBox on your screen.
|
|
Packit |
b099d7 |
#) The title of the iconBox should be MyIcons.
|
|
Packit |
b099d7 |
#) The iconBox should have 1 row and 4 columns. It should have a vertical
|
|
Packit |
b099d7 |
scrollbar.
|
|
Packit |
b099d7 |
#) The title of the iconBox should be MyIcons.
|
|
Packit |
b099d7 |
#) Before continuing with the test, iconify all windows on the screen except
|
|
Packit |
b099d7 |
for the test instruction panel.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Four client windows should have appeared on the screen, each
|
|
Packit |
b099d7 |
containing a PushButton. The windows should be on top of one
|
|
Packit |
b099d7 |
another, with their horizontal and vertical frames offset from the
|
|
Packit |
b099d7 |
upper left corner of the screen.
|
|
Packit |
b099d7 |
#) None of the client windows should have focus.
|
|
Packit |
b099d7 |
#) The client windows should now have an offwhite frame. The title of
|
|
Packit |
b099d7 |
the window should be should be in red.
|
|
Packit |
b099d7 |
#) Position the client windows so that they are all visible.
|
|
Packit |
b099d7 |
#) "TestWindow1" should have a matte 20 pixels wide. The matte should
|
|
Packit |
b099d7 |
be green, with a bottom shadow color of red, and a top shadow color of
|
|
Packit |
b099d7 |
blue. (the bottom shadow color is the bottom and right 3-dimesional bevel.
|
|
Packit |
b099d7 |
The top color is the top and left 3-dimensional bevel.) The
|
|
Packit |
b099d7 |
pattern of the top and left bevels should be diaganol lines slanting
|
|
Packit |
b099d7 |
to the right, alternating between blue and red. The pattern of the
|
|
Packit |
b099d7 |
bottom and right bevels should be diaganol lines slanting to the left,
|
|
Packit |
b099d7 |
also alternating between blue and red.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This panel tests window decoration resources.
|
|
Packit |
b099d7 |
#) A dialog box should have appeared on the screen. It should have the
|
|
Packit |
b099d7 |
default decorations, i.e a window menu button, a title, and resize handles.
|
|
Packit |
b099d7 |
You should be able to perform any functions represented by those buttons,
|
|
Packit |
b099d7 |
i.e post the window menu and resize it.
|
|
Packit |
b099d7 |
#) Dismiss the dialog box by pressing "Cancel".
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This panel tests icon configuration resources.
|
|
Packit |
b099d7 |
#) Iconify "TestWindow1".
|
|
Packit |
b099d7 |
#) Click MB1 on the icon for "TestWindow1". (You might have to scroll to it
|
|
Packit |
b099d7 |
if it isn't visible). The menu will post but not stay posted.
|
|
Packit |
b099d7 |
#) Normalize "TestWindow1". Look at the icon for this window in the iconBox.
|
|
Packit |
b099d7 |
It should be grayed out. (As should the icons of all the normalized
|
|
Packit |
b099d7 |
windows on the screen.)
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This panel tests focus policies.
|
|
Packit |
b099d7 |
#) Move any test window over "TestWindow3". Click inside "TestWindow3". It
|
|
Packit |
b099d7 |
should get the focus, but should not be raised.
|
|
Packit |
b099d7 |
#) Move any test window over "TestWindow4". Click inside "TestWindow4". It
|
|
Packit |
b099d7 |
should get the focus, and should be raised.
|
|
Packit |
b099d7 |
#) The window with focus should have a red background, and wheat foreground.
|
|
Packit |
b099d7 |
#) Iconify "TestWindow1". No window should have the focus now.
|
|
Packit |
b099d7 |
You should be able to set the focus on any window by explicitly
|
|
Packit |
b099d7 |
selecting it.
|
|
Packit |
b099d7 |
#) Normalize "TestWindow1" by choosing "Restore" from the icon menu.
|
|
Packit |
b099d7 |
(You might have to scroll to it if it isn't visible).
|
|
Packit |
b099d7 |
It shouldn't have the focus.
|
|
Packit |
b099d7 |
#) Close "TestWindow4" via the window menu. No window should have the
|
|
Packit |
b099d7 |
focus; if it does, CR 5213 hasn't been fixed.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This panel tests size and position resources.
|
|
Packit |
b099d7 |
#) Try to resize "TestWindow1" bigger. It should let you resize it
|
|
Packit |
b099d7 |
to any dimensions you want. You should be able to see the resize cursors.
|
|
Packit |
b099d7 |
Return TestWindow1 to a normal size.
|
|
Packit |
b099d7 |
@) /* Read next 2 instructions before continuing. */
|
|
Packit |
b099d7 |
#) Maximize "TestWindow1" using the maximize button on the frame. It should
|
|
Packit |
b099d7 |
be maximized to the full dimensions of the screen.
|
|
Packit |
b099d7 |
#) Normalize "TestWindow1" via the window menu.
|
|
Packit |
b099d7 |
#) Press <Shift><Tab> on a window. You should be able to perform a move
|
|
Packit |
b099d7 |
operation. Use the arrow keys to move the window. Note the position of
|
|
Packit |
b099d7 |
the pointer during the operation; it should be warped to the center of
|
|
Packit |
b099d7 |
the selected window.
|
|
Packit |
b099d7 |
#) Place the window.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This panel tests various Mwm functions, and the bindings associated with
|
|
Packit |
b099d7 |
them.
|
|
Packit |
b099d7 |
#) There should be 5 windows on your screen : the 3 test windows, the
|
|
Packit |
b099d7 |
iconBox, and the instruction box.
|
|
Packit |
b099d7 |
Stack the 3 test windows over each other. Give focus to the top window.
|
|
Packit |
b099d7 |
press <Ctrl><Shift><Tab>. The window should be lowered to the bottom
|
|
Packit |
b099d7 |
of the stack.
|
|
Packit |
b099d7 |
#) Press <Ctrl><Tab> on the window at the bottom of the stack.
|
|
Packit |
b099d7 |
The window should be raised to the top of the stack.
|
|
Packit |
b099d7 |
#) Press MB3 on the root window. A menu titled "TestMenu" appears with
|
|
Packit |
b099d7 |
the following items : "Shuffle Up", "Shuffle Down", "To Another Test Menu".
|
|
Packit |
b099d7 |
There should be a separator between the title and the items. The menu
|
|
Packit |
b099d7 |
background should be off-white, the foreground red, and the font courb24.
|
|
Packit |
b099d7 |
@) /* test for CR 5707 */
|
|
Packit |
b099d7 |
#) Select "To Another Test Menu" from the TestMenu menu. A menu titled
|
|
Packit |
b099d7 |
" CR5707Menu " should be posted, with a single grayed-out item :
|
|
Packit |
b099d7 |
"Do Nothing". If there are no triling spaces in the menu title,
|
|
Packit |
b099d7 |
CR 5707 hasn't been fixed.
|
|
Packit |
b099d7 |
#)/* READ THE REST OF THE INSTRUCTIONS IN THIS PANEL BEFORE CARRYING OUT.*/
|
|
Packit |
b099d7 |
#) There should now be 5 windows on your screen : the 3 test windows, the
|
|
Packit |
b099d7 |
iconBox, and the instruction box. Stack all 5 windows on top of
|
|
Packit |
b099d7 |
each other.
|
|
Packit |
b099d7 |
#) Press MB3 on the root menu. Select "Shuffle Down" from the
|
|
Packit |
b099d7 |
TestMenu menu. The window at the top of the stack should be lowered to
|
|
Packit |
b099d7 |
the bottom of the stack.
|
|
Packit |
b099d7 |
#) Give focus to the window on the bottom of the stack. Select "Shuffle Up"
|
|
Packit |
b099d7 |
from the TestMenu menu. at the bottom of the stack should be raised to the
|
|
Packit |
b099d7 |
top.
|
|
Packit |
b099d7 |
#) If instuction box isn't visible, move it so that it is.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Move the pointer to the window menu button of "TestWindow1". Double-click
|
|
Packit |
b099d7 |
on it rapidly with MB1. The window should not close.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
E)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|