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
- Create a new CSS file
- add a block comment at the top of the file:
/** * This is a comment */
Content Assist
- Select different browser/user agents. This should reflect in the list of items presented in the popup dialogs
- 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.
- Select "background-position". Verify it inserts it correctly into the document.
- Press ':'. Verify content assist pops up again
- Select "left". Verify it inserts "left;" into the document
- Hover over "body", "background-position" and "left". Verify it presents hover help for each of the three items.
Bracket Insertion/Auto-typing
- Verify typing a '(', '{', or '[' auto-inserts a matching character
- 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.
- Press "Enter" after a semicolon. It should insert a new line and indent one tab space.
Formatting
- To ship in M10. In m9, the key combination Ctrl + Shift + F should not do anything.
Colorization
- Type in the document and cut/paste content. Verify that no strange colorization appears
Folding
- Ensure two folding markers appears, one for the comment, one for the body
- Fold the comment
- Type col inside the body rule
- Ensure content assist appears
- Right-click in the gutter and choose Folding > Collapse All. Verify all items are folded
- Right-click in the gutter and choose Folding > Expand All. Verify all items are expanded
Validation
- Verify that typing errors in the main editor window results in validation errors appearing and disappearing in the validation view


