Blame tests/DragAndDrop/DNDTxtLbl1.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: DNDTxtLbl1.dat /main/6 1995/07/14 11:55:40 drk $"
Packit b099d7
*/
Packit b099d7
Packit b099d7
Packit b099d7
#) This is the DNDTxtLbl1 test.
Packit b099d7
Packit b099d7
#) This is just to test the DND support in the Motif Label and Text
Packit b099d7
   widget.
Packit b099d7
Packit b099d7
#) You should see a Label widget with two-line label and a multiline
Packit b099d7
   Text widget.
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, position the pointer to the left of word "test" and release
Packit b099d7
   BTransfer. The text \"Two-Line\" should appear in the Text widget
Packit b099d7
   at the point where the button was released and on the next line
Packit b099d7
   the text \"Label String\" should appear. Also the portion "test string"
Packit b099d7
   of the original text should appear at the end of the second line.
Packit b099d7
Packit b099d7
C)
Packit b099d7
Packit b099d7
Packit b099d7
#) Click MouseBtn1 at the end of the second line of text and hit <Return>
Packit b099d7
Packit b099d7
#) Enter the text "Here is New Text".
Packit b099d7
Packit b099d7
#) Select the word "Here".
Packit b099d7
Packit b099d7
#) Position the pointer on the selected text and initiate drag by
Packit b099d7
   pressing BTransfer (MB2 by default).
Packit b099d7
Packit b099d7
#) With BTransfer pressed, drag the pointer over to the point to the
Packit b099d7
   left of the string "Two-Line", and release BTransfer. The selected
Packit b099d7
   text "Here" should get moved from its original position on the third
Packit b099d7
   line to the point where BTransfer was released.
Packit b099d7
Packit b099d7
#) Select the word "New".
Packit b099d7
Packit b099d7
#) Position the pointer on the selected text and initiate drag by
Packit b099d7
   pressing BTransfer (MB2 by default).
Packit b099d7
Packit b099d7
#) Now hold \<Ctrl\> key down and with BTransfer pressed, drag the
Packit b099d7
   pointer to the beginning of second line in the Text widget and still
Packit b099d7
   holding the \<Ctrl\> key, release BTransfer. This time, the
Packit b099d7
   selected text "New" should get copied into the new location, meaning
Packit b099d7
   it should still be present at its original position also.
Packit b099d7
Packit b099d7
C)
Packit b099d7
Packit b099d7
/* Case to test CR5240 */
Packit b099d7
#) Now there should be one more label widget between the two line label
Packit b099d7
   widget and the text widget, with the label string "One line" and a
Packit b099d7
   borderWidth of 5.
Packit b099d7
Packit b099d7
#) Select the last word "Text" on the third line of the Text widget.
Packit b099d7
Packit b099d7
#) Position the pointer anywhere on the new Label with the labelString
Packit b099d7
   "One line". Initiate drag by pressing BTransfer (MB2 by default).
Packit b099d7
Packit b099d7
#) With BTransfer pressed, drag the pointer over to the Text
Packit b099d7
   widget to the left of the word "String" on the second line of the
Packit b099d7
   text widget, and release BTransfer.  The text "One line" should
Packit b099d7
   appear in the Text widget at the point where the button was released.
Packit b099d7
Packit b099d7
#) Again, Position the pointer anywhere on the new Label with the 
Packit b099d7
   labelString "One line". Initiate drag by pressing BTransfer.
Packit b099d7
Packit b099d7
#) With BTransfer pressed, drag the pointer over to the Text
Packit b099d7
   widget anywhere on the selected string "Text", and release
Packit b099d7
   BTransfer. The text "One line" should replace the previously
Packit b099d7
   selected text "Text".
Packit b099d7
Packit b099d7
C)
Packit b099d7
Packit b099d7
/* Case to test CR5958 */
Packit b099d7
#) Now there should be a pushbutton widget between the one line label
Packit b099d7
   widget and the text widget, with a blank label string and a
Packit b099d7
   borderWidth of 5. Initiate drag by pressing BTransfer.
Packit b099d7
Packit b099d7
#) With BTransfer pressed, drag the pointer over to the Text widget and 
Packit b099d7
   release BTransfer. No core dumps or segvs should occur.
Packit b099d7
Packit b099d7
C)
Packit b099d7
Packit b099d7
E)