CSS Editor Basic Acceptance Tests

From Aptana Development

Contents

General

Remember to do the basic general tests for every editor in addition to doing the following editor-specific tests

  1. Create a new CSS file
  2. add a block comment at the top of the file:
/**
 * This is a comment 
 */

Content Assist

  1. Select different browser/user agents. This should reflect in the list of items presented in the popup dialogs
  2. Press "b" inside the curly braces of the body rule. Content assist should pop up. Verify closing it and pressing control + space should bring up content assist again.
  3. Select "background-position". Verify it inserts it correctly into the document.
  4. Press ':'. Verify content assist pops up again
  5. Select "left". Verify it inserts "left;" into the document
  6. Hover over "body", "background-position" and "left". Verify it presents hover help for each of the three items.

Bracket Insertion/Auto-typing

  1. Verify typing a '(', '{', or '[' auto-inserts a matching character
  2. Verify typing the "Enter" key in between {} will move the cursor down one line, auto indent it, and move the trailing brace to the beginning of the next line.
  3. Press "Enter" after a semicolon. It should insert a new line and indent one tab space.

Formatting

  1. To ship in M10. In m9, the key combination Ctrl + Shift + F should not do anything.

Colorization

  1. Type in the document and cut/paste content. Verify that no strange colorization appears

Folding

  1. Ensure two folding markers appears, one for the comment, one for the body
  2. Fold the comment
  3. Type col inside the body rule
    1. Ensure content assist appears
  4. Right-click in the gutter and choose Folding > Collapse All. Verify all items are folded
  5. Right-click in the gutter and choose Folding > Expand All. Verify all items are expanded

Validation

  1. Verify that typing errors in the main editor window results in validation errors appearing and disappearing in the validation view

Links

  1. IDE Core Basic Acceptance Tests
  2. Main Testing Section