Author: artdaw
Date: 2011-02-03 10:23:20 -0500 (Thu, 03 Feb 2011)
New Revision: 21422
Modified:
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/PanelMenuRendererTest.java
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xhtml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xmlunit.xml
Log:
RF-10298: test for PanelMenu, @itemClass, @itemDisabledClass, is added
Modified:
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/PanelMenuRendererTest.java
===================================================================
---
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/PanelMenuRendererTest.java 2011-02-03
14:52:35 UTC (rev 21421)
+++
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/PanelMenuRendererTest.java 2011-02-03
15:23:20 UTC (rev 21422)
@@ -23,17 +23,16 @@
package org.richfaces.renderkit.html;
-import java.io.IOException;
-
-import org.junit.Ignore;
import org.junit.Test;
import org.xml.sax.SAXException;
+import java.io.IOException;
+
/**
* @author akolonitsky
* @since 2010-10-25
*/
-@Ignore
+
public class PanelMenuRendererTest extends RendererTestBase {
@Test
Modified:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xhtml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xhtml 2011-02-03
14:52:35 UTC (rev 21421)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xhtml 2011-02-03
15:23:20 UTC (rev 21422)
@@ -22,7 +22,8 @@
-->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:h="http://java.sun.com/jsf/html"
@@ -31,13 +32,23 @@
xmlns:pn="http://richfaces.org/output"
xmlns:rich="http://richfaces.org/rich">
- <h:head>
- <title>Richfaces PanelMenu Test</title>
- </h:head>
+<h:head>
+ <title>Richfaces PanelMenu Test</title>
+</h:head>
<h:body>
<h:form id="f" style="border:blue solid thin;">
- <pn:panelMenu id="panelMenu"></pn:panelMenu>
+ <pn:panelMenu id="panelMenu" itemClass="my-item-class"
itemDisabledClass="my-item-disabled-class">
+ <pn:panelMenuGroup>
+ <pn:panelMenuItem id="item">
+ My Item
+ </pn:panelMenuItem>
+ <pn:panelMenuItem id="item_disabled"
disabled="true">
+ My Disabled Item
+ </pn:panelMenuItem>
+ </pn:panelMenuGroup>
+
+ </pn:panelMenu>
</h:form>
</h:body>
</html>
Modified:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xmlunit.xml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xmlunit.xml 2011-02-03
14:52:35 UTC (rev 21421)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/panelMenu.xmlunit.xml 2011-02-03
15:23:20 UTC (rev 21422)
@@ -1,7 +1,75 @@
<div id="f:panelMenu" class="rf-pm">
<input id="f:panelMenu-value" name="f:panelMenu-value"
type="hidden"/>
<script type="text/javascript">
- // Text
+ //<![CDATA[
+//]]>
</script>
+ <div id="f:j_idt7" class="rf-pm-top-gr">
+ <input id="f:j_idt7:expanded" name="f:j_idt7:expanded"
type="hidden" value="false"/>
+ <div id="f:j_idt7:hdr" class="rf-pm-top-gr-hdr
rf-pm-hdr-colps">
+ <table class="rf-pm-top-gr-gr">
+ <tbody>
+ <tr>
+ <td class="rf-pm-top-gr-ico">
+ <div class="rf-pm-ico-colps
rf-ico-transparent-hdr">
+ </div>
+ <div class="rf-pm-ico-exp
rf-ico-transparent-hdr">
+ </div>
+ </td>
+ <td class="rf-pm-top-gr-lbl"/>
+ <td class="rf-pm-top-gr-exp-ico">
+ <div class="rf-pm-ico-colps
rf-ico-transparent-hdr">
+ </div>
+ <div class="rf-pm-ico-exp
rf-ico-transparent-hdr">
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="f:j_idt7:cnt" class="rf-pm-top-gr-cnt
rf-pm-colps">
+ <script type="text/javascript">
+ //<![CDATA[
+//]]>
+ </script>
+ <div id="f:item" class="rf-pm-itm my-item-class">
+ <table class="rf-pm-itm-gr">
+ <tbody>
+ <tr>
+ <td class="rf-pm-itm-ico
rf-ico-transparent"/>
+ <td class="rf-pm-itm-lbl">
-</div>
+ My Item
+
+ </td>
+ <td class="rf-pm-itm-exp-ico
rf-ico-transparent"/>
+ </tr>
+ </tbody>
+ </table>
+ <script type="text/javascript">
+ //<![CDATA[
+//]]>
+ </script>
+ </div>
+ <div id="f:item_disabled" class="rf-pm-itm my-item-class
rf-pm-itm-dis my-item-disabled-class">
+ <table class="rf-pm-itm-gr">
+ <tbody>
+ <tr>
+ <td class="rf-pm-itm-ico
rf-ico-transparent-dis"/>
+ <td class="rf-pm-itm-lbl">
+
+ My Disabled Item
+
+ </td>
+ <td class="rf-pm-itm-exp-ico
rf-ico-transparent-dis"/>
+ </tr>
+ </tbody>
+ </table>
+ <script type="text/javascript">
+ //<![CDATA[
+//]]>
+ </script>
+ </div>
+ </div>
+ </div>
+</div>
\ No newline at end of file