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: List1.dat /main/5 1995/07/13 18:14:13 drk $"
*/
#) A client with a list should appear. The list's background should
   be white and there should be 9 items in the it.
#) Click on one item in the list. The item should highlight
   (reverse colors) and a message should be printed in the term window.
#) Click on another item. The item should highlight and another message
   should appear in the term window.
#) Continue to have the window change size and selection mode
   become MULTIPLE_SELECT.
C)
#) Click on several items in the list. The items should become
   highlighted and a message should appear after every selection.
#) Continue to have selection mode become BROWSE_SELECT.
C)
#) Browse select an item (press and hold MB1, drag pointer
   through selections, then release on desired item). The highlight should
   follow the pointer through the list and stay on the selected item.
#) Resize the client window.
#) Move the client window.
#) Iconify the client window.
#) Normalize the client window.
#) Continue to have selection mode become EXTENDED_SELECT.
C)
#) Drag select first three items (move pointer to first item,
   press and hold MB1 and drag pointer through the first three items,
   then release MB1). The first three items should be highlighted
   and a message should appear in the term window.
#) Drag select the last three items. The first three items should
   become unselected and the last three should be highlighted. A message
   should appear in the term window.
#) Unselect all items (press and hold <ctrl> key and MB1 and drag pointer
   across all selected items). No items should be highlighted.
#) Select item one (move pointer to first item and click MB1). The first
   item should be highlighted and a message should appear.
#) Move pointer to the fourth item, press and hold <shift> key and click MB1.
   Items one through four should become selected and a message should appear.
#) Move the pointer to the sixth item, press and hold <ctrl> key and click MB1.
   Item six should be added to items selected and a message should appear.
#) Unselect all items (press and hold <ctrl> key and MB1 and drag the pointer
   across all items). No item should be highlighted and a message should
   appear.
C)
#) There should be five visible items in the list and the selection mode
   should be SINGLE_SELECT.
#) Move the pointer into the client window. The highlight should be around
   the entire list.
#) Select item \"DrawnButton\". The item will be selected, but NO
   information should be printed in the term window.
#) Press the down arrow key. The highlight should move downwards in the list
   with each press of the down arrow key.
#) Press the space bar in the client window. The item currently being
   outlined should be selected but NO information should be printed
   in the term window.
#) Select item \"List\". The item should highlight but NO information should
   be printed in the term window.
C)
#) Item \"List\" should now be replaced with item \"NEWList\". Information
   will be printed in the term window stating that the SelectedItemCount is 1
   and that the SelectedItems is \"List\".
#) Select any item in the List.
C)
#) A Message should be printed to the term window that the SelectedItemCount
   is 0 and the SelectedItems are NULL.
#) The List should now contain only one item (Same Item).
#) Select this item.
C)
#) The selectedItemPos array will be printed to STDOUT. It should contain
   10 items (1 - 10).
#) The selectedItemCount will be printed to STDOUT. It should be 1.
#) Deselect all the items by hitting <ctrl> \ (backslash).
C)
#) Two messages should appear on STDOUT.
#) The first one should say "No Selected Items".
#) The second one should say "Position count from XmListGetSelectedPos = 0".
#) If the second message shows a non-zero value, CR5228 has not been fixed.
C) 
#) The List should now be set insensitive.
C)
@) Begin testing CR 5833.
#) The List should now be sensitive.
#) The selection mode should be SINGLE_SELECT.
#) If any two items appear to be selected, 5833 has not been fixed.
@) Done testing CR 5833.

E)