Instructions for Defaults Test
------------------------------

PART A
------

1. The following resources have their defaults
set based on the visual type of screen.  
Therefore, you must find out what the defaults
are for your type of screen and check these
resources.  One place to check is WmResource.c

Inactive Window Frame Resources
-------------------------------

	Background
	Foreground
	Top Shadow Color
	Bottom Shadow Color
	Background Pixmap
	Top Shadow Pixmap
	Bottom Shadow Pixmap

Active Window Frame Resources
-----------------------------

	Background
        Foreground
        Top Shadow Color
        Bottom Shadow Color
        Background Pixmap
        Top Shadow Pixmap
        Bottom Shadow Pixmap


Defaults for the following resources are
not specific to the visual display type.
Test for the correct defaults.

Test the following:

1. One of the windows should have keyboard
   input focus (it depends on the order
   they are created).

2. The font of the window title should be
   fixed.  

3. All of the window decorations should be 
   present for all 3 windows: border;menu,
   maximize and minimize buttons;title;
   resize handles, but none of the
   windows should have a matte.

4. The border width should be 10.

5 a.Click MB1 in the instructions window.
  b.Click MB1 in xterm2
  c.Click MB1 in xterm1 
    Xterm1 should have focus and raise
    (the entire window should be visible)
  d.Click MB1 on the minimize button in xterm1

   -Xterm1 should display a stand-alone (no 
    icon box) icon in the lower left corner 
    of the screen. 
   -The icon should have the standard motif 
    image with the title "xterm" below it
   -Keyboard focus should be given to xterm2
   -The icon image foreground,background,top 
    shadow,and bottom shadow colors should 
    be the same as those for xterm2
   -The icon image top shadow and bottom
    shadow pixmaps should be the same as those
    for xterm2

6 a.Drag the mouse button on the icon and move
    the icon so that it partially overlaps 
    xterm2. You may also have to move xterm2
    to get them to overlap.
    Release the mouse button.
     
   -An outline of the icon should appear
    and follow the cursor. The icon should
    be placed where the mouse button was
    released.
  
  b.Click in xterm2. 
  c.Double-click on the icon to de-iconify
    it.
  d.Click MB1 on the window menu button of 
    xterm1 and select minimize
    
   -Xterm1 should iconify but be displayed
    where it was last displayed. The icon
    should be partially obscured by xterm2.

7 a.Click MB1 on the icon, then one second
    later click MB1 on the icon again. 

   -The icon should become active
   -A window menu should appear above the icon
    after the first click and stay posted
 
  b.Double-click MB1 on the icon, but this
    time make the two clicks less than
    one-half a second apart.
  
   -The iconified window should open and 
    be displayed where it was before it was
    iconified. It should have keyboard focus.

8 a.Read the instructions for this  whole 
    test before executing, as they will be 
    obscured for part of the test.

    Click MB1 on the maximize button in xterm1.
   
   -xterm1 should expand to the size of the
    screen.
   -The maximize button should remain 
    "depressed".

  b.Click MB1 on maximize button again.

   -xterm1 should normalize.
   -The maximize button should not be
    "depressed".

  Repeat a and b, but instead of using the
  mouse, use the keys Meta F10 to maximize
  and Meta F5 to normalize.
  

9 a.Carefully, without moving the mouse, 
     click MB1 on the title bar of xterm1 and
     hold it down. Very slowly, move the
     mouse until the outline of the 
     window appears. 

   b.Drag MB1 on window menu button of xterm1
     and select Move. Move xterm1 to be clear 
     of xterm2 and click MB1.

    -A small box should appear showing the
     position of the window, an outline 
     of the window should follow the mouse 
     cursor and xterm1 should be redrawn where 
     the mouse button is clicked.

   c.Repeat b, but instead of clicking the 
     mouse in the window menu, press Meta F7 
     to start Move, then use arrow keys to 
     move window and press Return to place 
     window. 

10 a.Drag MB1 on window menu button in xterm1
     and select Size.
   
   b.Starting with the top left corner, 
     move the resize handle to resize the
     window then place the handle by clicking 
     MB1.

   c.Repeat a and b using each of the 
     resize handles, until they all have
     been dragged and placed.
   
     resize handles: top left, left, bottom 
     left, bottom, bottom right, right, top 
     right, top.

   d.Repeat b and c, but this time just move the
     mouse cursor into the border until the
     resize cursor appears, then with MB1
     drag the mouse on the border to resize the
     window.
   
   For each resize:

    -A resize cursor should appear in the 
     frame.
    -A small box should appear showing the
     position of the window.
    -An outline of the section of the window 
     being resized should follow the mouse 
     cursor and xterm1 should resize to where 
     the mouse button is clicked or Return is
     pressed.  

   e.This will obscure the instructions. Please
     read first. With keyboard focus in xterm1,
     Press Meta F8 to select Size, drag the 
     resize handles using the arrow
     keys so that xterm1 is as large as 
     possible. Attempt to make the window 
     larger than the screen. Press Return 
     to place window.

    -When the resize cursor gets to the edge 
     of the screen, it should not go any 
     farther.  The size of xterm should be 
     the same as the size of the screen.
  
     Using the same method, resize the window
     back to its previous size.

11. Press MB1 down in xterm2 and drag over 
    a few lines.

   -Xterm2 should get focus and raise, and
    the mouse event should be passed to the
    window, causing the lines to be shaded.
    cut/paste buffer to be displayed on the
    screen.
      
PART B
------

1. With input focus in xterm2, press Meta
   F9

  -xterm2 should be iconified

2 a.With the input focus in xterm1, press 
    Shift Escape

  -The window menu should be displayed in 
   xterm1. There should be a line (separator)
   before the Close function.

  b.Press Return twice, then click MB1 on the 
    xterm2 icon. Click MB1 again, outside the
    icon. Then press Shift Escape.

   -The window menu should be displayed above
    the xterm2 icon.

  c.Click MB1 outside icon, then repeat 2a 
    and b, but instead of Shift Escape, use 
    Meta Space.

3 a.Click MB1 outside icon, then click MB1 in 
    xterm1. Press Meta Tab a few times.

   -The keyboard input focus should change
    to one of the other windows each time
    the key is pressed.  Notice the
    order in which the focus is changed.

4. Click MB1 in xterm1. Press Meta Shift Tab
   a few times.  

  -The keyboard input focus should change
   to one of the other windows each
   time the key is pressed. The order
   that the focus is changed should be
   reverse of that in #3.
   
5. Move xterm2 icon and xterm1 so that they
   both overlap with instructions window. With
   keyboard focus in the instructions window,
   Press Meta Escape a few times.

  -The windows should "shuffle" each time
   the key is pressed. The window on top
   should be put on the bottom, and the
   the one underneath the top one should
   be put on top.


6. Press Meta Shift Escape a few times. 

  -The windows should "shuffle", only
   this time the bottom window should
   be put on top.

7. With the keyboard focus in the xterm2
   icon, press Meta F4 to close the window.

  -The icon should disappear.
    
8. With the keyboard focus in xterm1, 
   double-click on the window menu button.
 
  -The xterm1 window should disappear.
  

END OF TEST
