/* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * 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 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 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 key and click MB1. Item six should be added to items selected and a message should appear. #) Unselect all items (press and hold 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 \ (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)