|
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 |
static char rcsid[] = "$XConsortium: Text10.dat /main/7 1995/07/13 19:25:52 drk $"
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/* test case for PIR 3317 */
|
|
Packit |
b099d7 |
@) Two text widgets were created using the helvetica1 font.
|
|
Packit |
b099d7 |
#) Click on the helvetica2 font to change both widgets to the larger font.
|
|
Packit |
b099d7 |
Both widgets should grow in width but their columns should remain
|
|
Packit |
b099d7 |
unchanged. The width and column data is displayed in the stdout window.
|
|
Packit |
b099d7 |
#) Click on the helvetica1 font to change the widgets back to the
|
|
Packit |
b099d7 |
smaller font. Both widgets should shrink in width and keep the
|
|
Packit |
b099d7 |
same column count.
|
|
Packit |
b099d7 |
/* end of test case for PIR 3317 */
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* PIR CLOSED, test case invalid
|
|
Packit |
b099d7 |
* test case for PIR 3753 *
|
|
Packit |
b099d7 |
#) Press and hold MB1 on the helvetica2 ToggleButton. While it is
|
|
Packit |
b099d7 |
being held, the font should change for the text widget.
|
|
Packit |
b099d7 |
#) Without moving the mouse, release MB1. Confirm that the ToggleButton
|
|
Packit |
b099d7 |
indicator for the helvetica2 button appears depressed and all other
|
|
Packit |
b099d7 |
ToggleButtons do not.
|
|
Packit |
b099d7 |
#) Press and hold MB1 on the helvetica3 ToggleButton. While it is
|
|
Packit |
b099d7 |
being held, the font should change again for the text widget.
|
|
Packit |
b099d7 |
#) Move the pointer outside the test window and release the MB1.
|
|
Packit |
b099d7 |
The ToggleButton indicator for the helvetica2 button should still appear
|
|
Packit |
b099d7 |
depressed and the indicator for helvetica3 should not.
|
|
Packit |
b099d7 |
* end of test case for PIR 3753 *
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/* test case for PIR 2648 */
|
|
Packit |
b099d7 |
@) A resizable Text widget is displayed.
|
|
Packit |
b099d7 |
@) The following resources have been set:
|
|
Packit |
b099d7 |
!) XmNrows = 3
|
|
Packit |
b099d7 |
!) XmNcolumns = 20
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
@) The text displayed in the widget should consist of, one row of numbers,
|
|
Packit |
b099d7 |
one row of the letter "m" and one row of the number "0".
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Select the first fontname in the radiobox.
|
|
Packit |
b099d7 |
#) Verify that there are at least twenty characters displayed in the
|
|
Packit |
b099d7 |
text widget. This can be done by clicking MB1 at the beginning of
|
|
Packit |
b099d7 |
a row of text and then clicking KRight counting each of characters
|
|
Packit |
b099d7 |
until the end of the row.
|
|
Packit |
b099d7 |
#) Repeat the above test for each of the fonts in the radiobox.
|
|
Packit |
b099d7 |
/* end of test case for PIR 2648 */
|
|
Packit |
b099d7 |
E)
|