blob: f08197f6c3cec76dbaba56b1e7e68a06f1226d7e [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../../../wtp.xsl"?>
<html>
<head>
<meta name="root" content="../../../../../../" />
<title>Code Folding Tests</title>
</head>
<body>
<h2>Code Folding</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 created</td>
</tr>
</table>
</h3>
<h3>
<b>Prerequisites</b>
</h3>
<p>none.</p>
<h3>
<b>General Information</b>
</h3>
<p>
To enable folding:
<br />
Preferences-&gt;General-&gt;Editors-&gt;Structured Text
Editors-&gt;Appearance-&gt;Enable folding
<br />
Context menu of editor's vertical
ruler-&gt;Folding-&gt;Enable Folding
</p>
<p>
Here is some information on what constitutes a foldable
region
<ul>
<li>
folding for xml creates folding region for all xml
tags
</li>
<li>
folding for html creates folding region for head,
body, script, style, table tags
</li>
<li>
folding for jsp creates folding region for jsp
scriptlet tags
</li>
<li>
folding for css creates folding region for all style
rules
</li>
</ul>
<p>
Relevant bugs:
<ul>
<li>
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=73271">Bug 73271</a>
</li>
<li>
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=85776">Bug 85776</a>
</li>
</ul>
</p>
</p>
<h3>
<b>Testing</b>
</h3>
<p>
<ul>
<li>
Verify Enable folding preference turns on/off
folding and removes folding markers in vertical
ruler
</li>
<li>
Verify Folding vertical ruler menu (Enable Folding,
Expand All, Collapse All)
</li>
<li>
Verify when create new foldable region, code folding
markers appear when create new foldable region via
<ul>
<li>type in a region by hand</li>
<li>insert via outline view</li>
<li>insert via content assist</li>
<li>insert via copy/paste</li>
</ul>
</li>
<li>
Verify when delete foldable region, folding markers
disappear
</li>
<li>
Verify typing and pasting text before/after folded
region types normally
</li>
<li>
Verify typing and pasting text in the middle of
folded region expands folded region
</li>
<li>
Verify big document changes such as
format/cleanup/revert/undo don't break folding
</li>
<li>
Verify Save As different content type and New Editor
(so 2 editors open on same file) do not break the
editor
</li>
</ul>
</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>