# XULMaker Project

## Testing

### Quick Test

The following simple test asserts that the application is operational.

1. Using the Palette Toolbar add some elements
   1. click on hbox in toolbar
   2. select hbox in treelist
   3. click on label in toolbar
   4. click on textbox in toolbar

   Check that the sytem responded - it didn't hang or crash

### Basic Test

1. Using the Palette Toolbar add some elements

   - check the tree view, list view and design view to see that the element was added or deleted

   - check that the selected element, (not the added element) was identified as the active element

   - check that the attributes in the Attribute Inspector reflect the selected (active) element.

   1. click on "hbox" in toolbar
   2. select "hbox0" in treelist ("hbox0" becomes active)
   3. click on "label" in toolbar
   4. click on "textbox" in toolbar
   5. click on "label" in toolbar
   6. select "label1" in treelist ("label1" becomes active)
   7. press delete key ("hbox0" becomes active)
   8. select each element in the treelist and check the corresponding attributes in the Attributes Inspector
2. Using the Element Toolbar add and delete some more elements

   - check the tree view, list view and design view to see that the element was added or deleted

   - check that the selected element, (not the added element) was identified as the active element

   - check that the attributes in the Attribute Inspector reflect the selected (active) element.

   1. select "window" in treelist
   2. select "hbox" in toolbar element list
   3. check "select as active" in toolbar
   4. click on "add element" button in toolbar (hbox1 becomes active)
   5. select "label" in toolbar
   6. click on "add element" button in toolbar (label2 becomes active)
   7. select "value" in toolbar attribute list
   8. type "name" in toolbar attribute value list
   9. click on "add attribute" button in toolbar
   10. select each element in the treelist and check the corresponding attributes in the Attributes Inspector