| <?xml version="1.0" encoding="utf-8"?> |
| <?xml-stylesheet type="text/xsl" href="../../../../wtp.xsl"?> |
| <html> |
| <head> |
| <meta name="root" content="../../../../../" /> |
| <title>Formatting Tests</title> |
| </head> |
| <body> |
| <h2>Formatting Tests</h2> |
| <h3> |
| <b>Status of this Document</b> |
| <table border="1"> |
| <tr> |
| <th>Date</th> |
| <th>Comments</th> |
| </tr> |
| <tr> |
| <td>6.21.06</td> |
| <td>Test moved to new location</td> |
| </tr> |
| <tr> |
| <td>4.15.05</td> |
| <td>Test created</td> |
| </tr> |
| </table> |
| </h3> |
| <h3> |
| <b>Getting started</b> |
| </h3> |
| <p> |
| 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. |
| </p> |
| <h3> |
| <b>Test formatting from context menu</b> |
| </h3> |
| <p> |
| open the a file of your content type in the source editor. |
| <br /> |
| <br /> |
| - from the context menu select |
| <b>"Cleanup Document..."</b> |
| <br /> |
| - check "Format source" in the dialog |
| <br /> |
| - press OK |
| <br /> |
| * document should be formatted: elements have correct |
| indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| <br /> |
| - undo changes (ctrl + z) |
| <br /> |
| - from context menu select |
| <b>"Format > Document"</b> |
| <br /> |
| * document should be formatted: elements have correct |
| indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| <br /> |
| - undo changes (ctrl + z) |
| <br /> |
| - select only part of the document |
| <br /> |
| - from context menu select |
| <b>"Format > Active Elements"</b> |
| <br /> |
| * selected elements only should be formatted: elements have |
| correct indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| <br /> |
| - undo changes (ctrl + z) |
| <br /> |
| - in the package explorer, select your file |
| <br /> |
| - right click and select |
| <b>"Source > Format Document"</b> |
| <br /> |
| * selected elements only should be formatted: elements have |
| correct indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| </p> |
| |
| <h3> |
| <b>Test formatting from Key Accelerators</b> |
| </h3> |
| <p> |
| open the a file of your content type in the source editor. |
| <br /> |
| <br /> |
| - press |
| <b>ctrl+shift+l</b> |
| ("Cleanup Document...") |
| <br /> |
| - check "Format source" in the dialog |
| <br /> |
| - press OK |
| <br /> |
| * document should be formatted: elements have correct |
| indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| <br /> |
| - undo changes (ctrl + z) |
| <br /> |
| - press |
| <b>ctrl+shift+f</b> |
| ("Format > Document") |
| <br /> |
| * document should be formatted: elements have correct |
| indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| <br /> |
| - undo changes (ctrl + z) |
| <br /> |
| - select only part of the document |
| <br /> |
| - press |
| <b>ctrl+i</b> |
| ("Format > Active Elements") |
| <br /> |
| * selected elements only should be formatted: elements have |
| correct indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| </p> |
| |
| <h3> |
| <b>Test formatting from Main Menu</b> |
| </h3> |
| <p> |
| open the a file of your content type in the source editor. |
| <br /> |
| <br /> |
| - from the Main Menu select |
| <b>"Source > Format > Document"</b> |
| <br /> |
| * document should be formatted: elements have correct |
| indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| <br /> |
| - undo changes (ctrl + z) |
| <br /> |
| - select only part of the document |
| <br /> |
| - from the Main Menu select |
| <b>"Source > Format > Active Elements"</b> |
| <br /> |
| * selected elements only should be formatted: elements have |
| correct indentation as specified in the preferences for the |
| particular content type |
| <br /> |
| </p> |
| |
| |
| <h2>Source Editing Test Plans</h2> |
| <p> |
| <a href="../../../../wst/components.html#sse"> |
| org.eclipse.wst.sse |
| </a> |
| <br /> |
| <a href="../../../../wst/components.html#xml"> |
| org.eclipse.wst.xml |
| </a> |
| <br /> |
| <a href="../../../../wst/components.html#html"> |
| org.eclipse.wst.html |
| </a> |
| <br /> |
| <a href="../../../../wst/components.html#css"> |
| org.eclipse.wst.css |
| </a> |
| <br /> |
| <a href="../../../../wst/components.html#dtd"> |
| org.eclipse.wst.dtd |
| </a> |
| <br /> |
| <a href="../../../../wst/components.html#javascript"> |
| org.eclipse.wst.javascript |
| </a> |
| |
| <br /> |
| <a href="../../../../jst/components.html#jsp"> |
| org.eclipse.jst.jsp |
| </a> |
| </p> |
| </body> |
| </html> |