|
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: DNDtest1.dat /main/6 1995/07/14 11:56:15 drk $"
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This is the DNDtest1 test.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) There should be a topLevel window with title \"topLevel0\"
|
|
Packit |
b099d7 |
containing six PushButtons arranged in two rows, and a Text
|
|
Packit |
b099d7 |
widget, within a BulletinBoard.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) PushBtn0, PushBtn2, and PushBtn4 have been registered as
|
|
Packit |
b099d7 |
dropSites.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) If you want to run another DND test simultaneously and do not
|
|
Packit |
b099d7 |
care about the instructions of that test, run that test with
|
|
Packit |
b099d7 |
the option -u "-noinstruct". Otherwise, before proceeding
|
|
Packit |
b099d7 |
further you will have to reposition the control panels, the
|
|
Packit |
b099d7 |
topLevel windows, and the instruction panels of both the tests
|
|
Packit |
b099d7 |
so that they are all completely visible.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Move the pointer to PushBtn1.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Initiate Drag by pressing BTransfer (MB2 by default). A dragIcon
|
|
Packit |
b099d7 |
should appear consisting of a runner, two open folders, and an
|
|
Packit |
b099d7 |
arrowhead.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) With BTransfer pressed, move the pointer over different PushBtns
|
|
Packit |
b099d7 |
and over the Text widget.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) When the pointer is moving within PushBtn1, PushBtn3, or PushBtn5,
|
|
Packit |
b099d7 |
you should not see any visual change since these are not registered
|
|
Packit |
b099d7 |
as dropSites.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) When the pointer is moving over PushBtn2, you should not see any
|
|
Packit |
b099d7 |
visual change. The reason for this is that, even though PushBtn2
|
|
Packit |
b099d7 |
is registered as a dropSite, it is not registered to accept any
|
|
Packit |
b099d7 |
drops (importTargets is NULL and numImportTargets is 0).
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) When the pointer is moving within PushBtn0 or PushBtn4, the
|
|
Packit |
b099d7 |
borders of those PushBtns should get highlighted.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) When the pointer is moving within the Text widget, the borders of
|
|
Packit |
b099d7 |
the Text widget should get highlighted.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) When the pointer is moving within the BulletinBoard but outside of
|
|
Packit |
b099d7 |
all the PushBtns and the Text widget, there should be no visual
|
|
Packit |
b099d7 |
change.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Release BTransfer with the pointer on the root window outside the
|
|
Packit |
b099d7 |
topLevel window. The dragIcon should zap back to PushBtn1, and
|
|
Packit |
b099d7 |
disappear.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Again initiate the Drag by pressing BTransfer with pointer over
|
|
Packit |
b099d7 |
PushBtn1.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Release BTransfer with the pointer over PushBtn1, PushBtn3, or
|
|
Packit |
b099d7 |
PushBtn5. The dragIcon should zap back to PushBtn1, and disappear.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Again initiate the Drag by pressing BTransfer with pointer over
|
|
Packit |
b099d7 |
PushBtn1.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Release BTransfer with the pointer over PushBtn2. The dragIcon
|
|
Packit |
b099d7 |
should zap back to PushBtn1, and disappear.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Again initiate the Drag by pressing BTransfer with pointer over
|
|
Packit |
b099d7 |
PushBtn1.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Release BTransfer with the pointer over the BulletinBoard, but
|
|
Packit |
b099d7 |
outside of all the PushBtns and the Text widget. The dragIcon
|
|
Packit |
b099d7 |
should again zap back to PushBtn1 and disappear.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Again initiate the Drag by pressing BTransfer with pointer over
|
|
Packit |
b099d7 |
PushBtn1.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Now, release BTransfer with the pointer over PushBtn0 or PushBtn4.
|
|
Packit |
b099d7 |
The dragIcon should melt into the background and disappear.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Again initiate the Drag by pressing BTransfer with pointer over
|
|
Packit |
b099d7 |
PushBtn1.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Now, release BTransfer with the pointer over the Text widget.
|
|
Packit |
b099d7 |
The text \"return value\" should get inserted into the Text
|
|
Packit |
b099d7 |
widget and the dragIcon should melt into the background and
|
|
Packit |
b099d7 |
disappear.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
E)
|