Blame tests/DragAndDrop/DNDLabel1.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: DNDLabel1.dat /main/6 1995/07/14 11:54:03 drk $"
Packit b099d7
*/
Packit b099d7
Packit b099d7
Packit b099d7
#) This is the DNDLabel1 test.
Packit b099d7
Packit b099d7
#) To test this, you need to run another Motif client with an
Packit b099d7
   editable Text(Field) widget in it.
Packit b099d7
Packit b099d7
#) You should see a Label widget with two-line label.
Packit b099d7
Packit b099d7
#) Position the pointer anywhere on the Label. Initiate drag by 
Packit b099d7
   pressing BTransfer (MB2 by default).
Packit b099d7
Packit b099d7
#) With BTransfer pressed, drag the pointer over to the Text
Packit b099d7
   widget, and release BTransfer. The text \"Two-Line\" should
Packit b099d7
   appear in the Text widget at the point where the button was
Packit b099d7
   released and on the next line the text \"Label String\"
Packit b099d7
   should appear.
Packit b099d7
Packit b099d7
C)
Packit b099d7
Packit b099d7
#) This panel tests that a dragged object can be moved and a drag
Packit b099d7
   completed via the keyboard, when the drag is initiated using the default
Packit b099d7
   BTransfer action (Pressing MB2).
Packit b099d7
Packit b099d7
#) Position the pointer anywhere on the Label. Initiate drag by 
Packit b099d7
   pressing BTransfer (MB2 by default).
Packit b099d7
Packit b099d7
#) With BTransfer pressed, click on KUp. The drag icon should move
Packit b099d7
   up. Repeat with KDown, KLeft and KRight. The drag icon should move
Packit b099d7
   in the direction corresponding to the arrow key. Move the drag icon until
Packit b099d7
   the hotspot is within the Text widget, and hit KReturn.
Packit b099d7
   The text \"Two-Line\" should appear in the Text widget at the point 
Packit b099d7
   where the cursor in the Text widget  was and on the next line the 
Packit b099d7
   text \"Label String\" should appear.
Packit b099d7
#) Position the pointer anywhere on the Label. Initiate drag by 
Packit b099d7
   pressing BTransfer (MB2 by default).
Packit b099d7
#) Drag the pointer over to the Text widget. Now, hit the osfActivate key.
Packit b099d7
   The text \"Two-Line\" should appear in the Text widget at the point 
Packit b099d7
   where the cursor was in the Text widget and on the next line the 
Packit b099d7
   text \"Label String\" should appear.
Packit b099d7
C)
Packit b099d7
Packit b099d7
#) This panel tests that a drag action can be initiated via the keyboard.
Packit b099d7
#) The translations for the Label have been overridden so that BTransfer is
Packit b099d7
   now <Ctrl>d.
Packit b099d7
#) Position the pointer anywhere on the Label, and click <Ctrl>d. A drag
Packit b099d7
   action should be initiated. 
Packit b099d7
#) Click on KUp. The drag icon should move up. Repeat with KDown, KLeft and 
Packit b099d7
   KRight. The drag icon should move in the direction corresponding to the 
Packit b099d7
   arrow key. Move the icon until the hotspot is within the Text widget, 
Packit b099d7
   and hit KReturn. The text \"Two-Line\" should appear in the Text widget 
Packit b099d7
   at the point where the pointer was , and on the next line the 
Packit b099d7
   text \"Label String\" should appear.
Packit b099d7
C)
Packit b099d7
Packit b099d7
E)