Formatting Tests |
|
Status of this Document
Date |
Comments |
6.21.06 |
Test moved to new location |
4.15.05 |
Test created |
|
|
Getting started
|
|
Perform these tests on a file of the content type which you
are interested in. (eg. if you are testing the XML
component, you would open an XML file) Also, the file you
are testing should be (relatively)poorly formatted.
|
|
Test formatting from context menu
|
|
open the a file of your content type in the source editor.
- from the context menu select
"Cleanup Document..."
- check "Format source" in the dialog
- press OK
* document should be formatted: elements have correct
indentation as specified in the preferences for the
particular content type
- undo changes (ctrl + z)
- from context menu select
"Format > Document"
* document should be formatted: elements have correct
indentation as specified in the preferences for the
particular content type
- undo changes (ctrl + z)
- select only part of the document
- from context menu select
"Format > Active Elements"
* selected elements only should be formatted: elements have
correct indentation as specified in the preferences for the
particular content type
- undo changes (ctrl + z)
- in the package explorer, select your file
- right click and select
"Source > Format Document"
* selected elements only should be formatted: elements have
correct indentation as specified in the preferences for the
particular content type
|
|
Test formatting from Key Accelerators
|
|
open the a file of your content type in the source editor.
- press
ctrl+shift+l
("Cleanup Document...")
- check "Format source" in the dialog
- press OK
* document should be formatted: elements have correct
indentation as specified in the preferences for the
particular content type
- undo changes (ctrl + z)
- press
ctrl+shift+f
("Format > Document")
* document should be formatted: elements have correct
indentation as specified in the preferences for the
particular content type
- undo changes (ctrl + z)
- select only part of the document
- press
ctrl+i
("Format > Active Elements")
* selected elements only should be formatted: elements have
correct indentation as specified in the preferences for the
particular content type
|
|
Test formatting from Main Menu
|
|
open the a file of your content type in the source editor.
- from the Main Menu select
"Source > Format > Document"
* document should be formatted: elements have correct
indentation as specified in the preferences for the
particular content type
- undo changes (ctrl + z)
- select only part of the document
- from the Main Menu select
"Source > Format > Active Elements"
* selected elements only should be formatted: elements have
correct indentation as specified in the preferences for the
particular content type
|
Source Editing Test Plans |
|
org.eclipse.wst.sse
org.eclipse.wst.xml
org.eclipse.wst.html
org.eclipse.wst.css
org.eclipse.wst.dtd
org.eclipse.wst.javascript
org.eclipse.jst.jsp
|