o Unallow the nav bean to count children. Turns out it was simpler to do it in jelly.

o Add new style for img.handle (no border, little bit of right padding)
o Update the templates to draw handles

I'm still not 100% on drawing an expanded handle on an uncollapsible node.
I think we could do to remove the little - in front of every item too.
PR: MAVEN-579


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding committed 2003-07-17 10:44:05 +00:00
1 parent 6ba41dd168
commit 48e967375d
5 files changed
+7 -33

No files matched your search

@@ -64,11 +64,10 @@ import junit.framework.TestCase;
import org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
import org.dom4j.tree.DefaultElement;
/**
* @author <a href="bwalding@jakarta.org">Ben Walding</a>
* @version $Id: NavBeanTest.java,v 1.3 2003/07/17 09:33:12 bwalding Exp $
* @version $Id: NavBeanTest.java,v 1.4 2003/07/17 10:44:03 bwalding Exp $
*/
public class NavBeanTest extends TestCase
{
@@ -133,24 +132,4 @@ public class NavBeanTest extends TestCase
String s = "At location " + location + ", looking to generate link to " + href + ", expecting collapse = " + expected;
assertEquals(s, expected, nb.isCollapsed(node));
}
public void testCountChildren() throws Exception
{
testCountChildren("/alpha/index.html", 2);
testCountChildren("/alpha/one/index.html", 0);
testCountChildren("/alpha/two/index.html", 0);
testCountChildren("/beta/index.html", 2);
testCountChildren("/beta/one/index.html", 0);
testCountChildren("/beta/two/index.html", 0);
}
public void testCountChildren(String href, int expected)
{
Node node = nb.getFirstNodeByHREF(href);
assertNotNull(node);
String s = "At location " + href + ", expecting countChildren = " + expected;
assertEquals(s, expected, nb.countChildren((DefaultElement) node));
}
}