Blame tests/Toolkit/Text/Text6.dat

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: Text6.dat /main/6 1995/07/13 19:30:09 drk $"
Packit b099d7
*/
Packit b099d7
/* test case for PIR 3677
Packit b099d7
 *   PIR 3677 closed.  The shell/paned window should end up the size of
Packit b099d7
 *   the two default text widgets, not 400x300.
Packit b099d7
 *
Packit b099d7
 * @) The test window shows two text widgets in a Paned Window.
Packit b099d7
 * Note that the Shell window size is 400W x 300H, and
Packit b099d7
 * the top Text widget is one row high while the second fills the
Packit b099d7
 * rest of the Shell window size. 
Packit b099d7
 * end of test case for PIR 3677 */
Packit b099d7
@) The test window shows two text widgets in a Paned Window.
Packit b099d7
Note that although the Shell window size was set to  400W x 300H,
Packit b099d7
the final hierarchy will only be sized to accomodate the two default
Packit b099d7
Text widgets (1 row x 20 columns each).
Packit b099d7
#) Give focus to the test client window. The focus should be at the start of the text in Text1.
Packit b099d7
#) Press and drag MB2 over the text in Text1.
Packit b099d7
#) Press the Tab key twice. Focus should be in Text2.
Packit b099d7
#) Type the word 'The' and a space. The string should read \"The Sample Text2\".
Packit b099d7
#) After you press continue, the test will verify the contents of Text2 and print out an error message if CR xxxx is still present.
Packit b099d7
C)
Packit b099d7
#) Check the results of the previous panel for an error message.
Packit b099d7
#) If this test failed, the results for the remainder of this test will most likely be corrupted. You may wish to rerun the test and skip the MB2 Drag on Panel 1.
Packit b099d7
C)
Packit b099d7
#) Move the pointer into the top text widget and click MB1.
Packit b099d7
   The insertion cursor should appear.
Packit b099d7
#) Press the return key. The text should change to
Packit b099d7
   "The <Return> Key was pressed." and a message indicating the
Packit b099d7
   callback reason should appear in the stdout window.
Packit b099d7
C)
Packit b099d7
#) Move the pointer into the bottom text widget and click MB1.
Packit b099d7
   The insertion cursor should appear.
Packit b099d7
#) Press the return key. A newline is inserted but the message should not
Packit b099d7
   change. 
Packit b099d7
C)
Packit b099d7
#) Put the pointer into the bottom text widget and press <Ctrl> r.  The text
Packit b099d7
   in the bottom widget should change to "Changed the string.".
Packit b099d7
   (Note that the bottom text widget will not get a focus highlight or
Packit b099d7
   respond to any other keystrokes.  The only tranlation it currently
Packit b099d7
   recognizes is <Ctrl> r.)
Packit b099d7
C)
Packit b099d7
#) Click MB1 in the top text widget.
Packit b099d7
/* test case for PIR 1772, PIR 1058 */
Packit b099d7
#) Type some text.
Packit b099d7
   For each character typed, messages indicating the callback reasons
Packit b099d7
   should appear in the stdout window.
Packit b099d7
   You should see "XmCR_MODIFYING_TEXT_VALUE" before
Packit b099d7
   "XmCR_VALUE_CHANGED".
Packit b099d7
#) Select text elsewhere in the text widget.
Packit b099d7
   Click MB2 to paste the text.
Packit b099d7
   Messages indicating the callback reasons should appear in the
Packit b099d7
   stdout window.
Packit b099d7
   You should see "XmCR_MODIFYING_TEXT_VALUE" before
Packit b099d7
   "XmCR_VALUE_CHANGED".
Packit b099d7
/* end of test case for PIR 1772, PIR 1058 */
Packit b099d7
Packit b099d7
C)
Packit b099d7
Packit b099d7
/*  Begin CR 6141 */
Packit b099d7
#) Click MB1 on the pushbutton labelled \"Set String\" to add text into the text widget.
Packit b099d7
#) Move the insertion cursor to position 3, which is immediately after the
Packit b099d7
word \"New\".
Packit b099d7
#) Click MB1 on the pushbutton labelled \"Insert\" which will insert new
Packit b099d7
text at position 3.
Packit b099d7
#) Verify that the insertion cursor moved to the end of the newly
Packit b099d7
inserted text.
Packit b099d7
/* End CR 6141 */
Packit b099d7
Packit b099d7
C)
Packit b099d7
E)