Instructions for Test 2
-----------------------

Part A
------

1. When first started, there should be no
   windows with input focus.

2. There should be 3 windows labeled: "xterm1",
   "xterm2", "Instructions", and an icon box
   labelled "Box of Icons".

3. Click MB1 in the instructions window.

Check the following resources:

Inactive Window Frame Resources
-------------------------------
  
Background:                 slate blue
Foreground:                 white
Top Shadow Color:           pink
Bottom Shadow Color:        yellow
Background Pixmap:          50_background
Top Shadow Pixmap:          foreground
Bottom Shadow Pixmap:       foreground

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

Background:                 red
Foreground:                 white
TopShadowColor:             green
BottomShadowColor:          purple
BackgroundPixmap:           75_foreground
TopShadowPixmap:            foreground
BottomShadowPixmap:         foreground

Matte Resources
---------------

Icon Image Background:          goldenrod
Icon Image Foreground:          violet
Icon Image Top Shadow Color:    orange
Icon Image Bottom Shadow Color: green
Icon Image Top Shadow Pixmap:   foreground
Icon Image Bottom Shadow Pixmap:foreground

Matte Width:                10
Matte Background:           aquamarine
Matte Foreground:           red
Matte Bottom Shadow Color:  navy
Matte Top Shadow Color:     navy
Matte Bottom Shadow Pixmap: slant_left
Matte Top Shadow Pixmap:    slant_right


Part B
------

Test the following:

1. There should be 3 windows labeled: "xterm1",
   "xterm2", "Instructions", and an icon box
   labelled "Box of Icons".

2. The font of the window title should be
   9x15.

3. There should be a menu button, title,
   matte, and a top border on all windows.

4. There should NOT be any resize border, 
   minimize or maximize buttons .

5. The icon box should be just big enough to 
   fit 1 row of 6 icons.  The icon box should 
   be in the bottom left corner of the screen.

6. There should be 3 greyed out, or faded
   icons in the icon box, 1 for each of the
   3 windows.

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

  -The window outline should appear after
   just the slightest movement.

 b.Continue dragging MB1 on the title bar 
   to move xterm2 to the bottom 
   left part of the screen (it should 
   overlap xterm1).

 c.Move the mouse cursor into xterm1.

  -Xterm1 should not get focus.

 d.Click MB3 in xterm1 (not in the title bar).
  
  -Xterm1 should get focus but not raise.
  -The title should be surrounded by a
   solid red box.

 e.Click MB1 in the title bar of xterm1

  -Xterm1 should have focus and raise

 f.Press MB3 BUT DON'T RELEASE in the title 
   bar of xterm2.
  
  - Xterm2 should have focus.

 g.Release MB3

  -Xterm2 should have focus and raise.


8a.Press MB1 on window menu button
   of xterm1.

  -The following window menu should 
   appear:

      Window Menu
      -----------
      Restore (greyed out)
      Move
      Size 
      Lower Window
      Iconify
      Maximize
 
 b.Release MB1.

  -The window menu should disappear.

 c.Press MB1 on menu button of xterm2 and
   select "lower window".  Then click MB1 
   in xterm1.  Press Shift F1 and with
   the arrow cursors, select "Iconify"
   and press Return.

  -The icon box should be displayed on
   top of xterm2.

  -Xterm1 should be iconified and
   displayed in the icon box.
   It should not be greyed
   out like the other 2 icons.

 d.Check the following icon resources:

   Icon Image Background:          goldenrod
   Icon Image Foreground:          violet
   Icon Image Top Shadow Color:    orange
   Icon Image Bottom Shadow Color: green
   Icon Image Top Shadow Pixmap:   foreground
   Icon Image Bottom Shadow Pixmap:foreground

9a.At this point, no window should have
   input focus. Press Meta F7. 

  -The whole screen should refresh.
 
 b.Click MB1 in xterm2, then press
   Shift F7.
    
  -Xterm2 should refresh, but not the
   rest of the screen.

10a.Click MB1 in the icon box. Double-click
    MB1 on the xterm1 icon but leave more 
    than 1 second between the clicks. 

   -The icon box should become active 
    (xterm1 should still be iconified).
  
   -The xterm1 icon should be highlighted
    with a black box around it.
  
  b.Double-click MB1 on the xterm1 icon, 
    but this time make the two clicks less 
    than one second apart.

   -Xterm1 should open and be displayed where 
    it was before it was iconified. 

   -Xterm1 should not have keyboard focus.

11. Double-click MB1 on the window menu
    button of xterm1.

   -The window menu should flash, and
    xterm1 should get focus and raise.


Part C
------
  
1. Click MB2 in the root window.

  -A beep should sound.

2a.Press MB2 in the title bar of xterm1. 

  -A short menu should be displayed with 
   the title "Test Menu", but no menu options.

  b.Press Meta F1. The same result should
    occur as in 2a. Press escape to clear 
    menu.

3a.Press MB3 in the root window.  The
   following menu should be displayed:

   Root Menu
   ---------

   New xterm Window
   Shuffle Up
   Shuffle Down
   Separator (colored line)
   Refresh
   Restart Mwm
   Quit Mwm (greyed out)

 b.Repeat a. but use MB1 instead of MB3.

4. Press and hold down Meta MB2 in the xterm1
   window. Move mouse cursor to the top
   border and resize the top border. 

  -A resize cursor should appear along with
   an outline of the top of the window which
   should follow the mouse cursor. The 
   window should resize to where MB2 was
   released.
   
5. Press and hold down Meta MB3 in xterm1.
   Drag the mouse cursor a little to move the
   window.  Release MB3.

  -An outline of the window should appear
   and xterm1 should move to where the
   outline was when mouse button is released. 

6. Press Shift Escape a few times.

  -The keyboard input focus should change
   to one of the other windows each
   time the key is pressed. 

7. Press Meta Tab a few times.

  -The keyboard input focus should change
   to one of the other windows each time
   the key is pressed, but the order
   of change should be reverse of that in 
   #6.

8a.Press Shift F2. Then press Shift F1,
   Shift Escape and Meta F2.

  -After pressing Shift F2, none of the
   other keys should have any effect.

 b.Press Shift F2 again.  

9. Press Meta F2 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.

10.Press Meta Escape a few times.

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

11.Press Meta Space.

  -Nothing should happen.

12.With the input focus in xterm1,
   Press Meta F1. 

  -A short menu should be displayed with
   the title "Test Menu", but no menu options.

   Press escape to clear the menu.

13a.Press MB1 in xterm2 and drag over a few
    lines before releasing.

   -Xterm2 should get focus, but the mouse
    event should not be passed to the window.
    None of the lines should get shaded.

  b.Press Meta F3.

   -Xterm2 should raise

  c.Press MB1 in xterm2 and drag over a few
    lines.

   -The lines should highlight and be copied
    to the cut/paste buffer.

    Click MB2 twice in xterm2.

   -Xterm2 should lower and the mouse event
    should be passed to the window, causing
    the contents of the cut/paste buffer 
    to be displayed on the screen.

14. Press Shift F3 a few times.

   -Xterm1 should alternate between
    raised and lowered state after each
    keypress.

15a.Press Shift F6.

   -The windows should become unmapped,
    then be mapped with default behavior.

  b.Click MB1 on the window menu button
    of xterm1. The menu should say:

    Restore    Alt+F5 (greyed out)
    Move       Alt+F7
    Size       Alt+F8  
    Minimize   Alt+F9 
    Maximize   Alt+F10 
    Lower      Alt+F3
    Separator Line
    Close      Alt+F4
 
    Press escape to clear menu.

  c.Slowly drag MB1 to the thin outside border
    of xterm1.

   -A resize cursor should appear.

  d.Press Meta Ctrl Shift !

   -The windows should become unmapped,
    then be mapped with the previous
    behavior (the way it was before
    15a.) 

   -Note: on a pmax this does not work.
    You will have to kill your mwm and restart it.

16a.Press MB3 and hold down in the root 
    window
  
   -The following root menu should be
    displayed:

    Root Menu
    ---------
    New Xterm Window
    Shuffle Up
    Shuffle Down
    Separator (colored line)
    Refresh
    Restart Mwm
    Quit Mwm (greyed out)

   b.Select "Restart Mwm" from the menu.

    -The windows should become unmapped,
     and then mapped just as they were
     before.

17a.Read instructions before doing this
    test, as they will be partially obscured.
    Press MB1 in root window and select
    "New Xterm Window" from the root
    menu.

   -A new xterm window should appear in the
    upper right corner of the screen.

  b.Drag MB1 in the window menu of the new
    xterm window and select "Iconify".  

18. Before you execute this test, read all
    instructions and make sure you are
    finished with the whole test - there
    is no turning back.  This step will
    kill mwm.

    Press Meta F8.

   -All of the window decorations should
    disappear. The windows are now unmanaged 
    by the window manager. 


END OF TEST
