Blob Blame History Raw
/* 
 * 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
*/ 
/*
static char rcsid[] = "$XConsortium: Navigation6.dat /main/7 1995/07/13 19:44:20 drk $"
*/
!) This is a test of traversal behaviors.  
#) Note where the focus is originally.
#) The seven boxed groups of widgets are frames and Row Columns. 
#) The empty frames are not traversable.
#) The focus can be anywhere except on btn42 before you continue.
C)
#) The focus is on btn42.
C)
#) The focus has been restored to the spot where it was originally.
C)
#) A form containing two text widgets is managed. The focus is moved to the first text widget.
#) Click on any other widget.  No other widget should receive the focus.
#) Type a string into the first text field and then press Tab. Until you guess
the password for Text1, the test will keep resetting the focus to Text1.
C)
#) The password is "meow".  Enter the password and press Tab.  The focus moves to the next text widget.
#) Click on btn42. The focus goes back to Text1.
#) Type "insensitive" into Text1 and hit tab. The widget becomes insensitive and the
focus moves to the next text widget.
C)
#) Give the client window focus by clicking on the empty area below the
empty frames and the text widgets.
#) You should see only one active, blinking insertion cursor. The other text
widget should have a stippled insertion cursor which does not blink.
#) Click in the second text widget.
#) Click in the first text widget.
#) An error dialog should appear.
#) Unmanage the dialog. There should be only one text insertion cursor.
C)
#) Two more text widgets are managed.
#) Put the focus back into Text1.
#) Click MB1 in Text2.
#) Each time you try to put the focus into one of the other text widgets, it should set the focus back to Text1. If it cannot, it will issue a warning message.
#) Click rapidly in different text widgets. Make sure the location cursor and the insertion cursor stay together.
#) Try typing into the widgets as you click in them. Make sure the text goes where the insertion cursor and the location cursor are. At no point should you see multiple insertion cursors.
E)