Author: ppitonak(a)redhat.com
Date: 2010-11-30 11:18:30 -0500 (Tue, 30 Nov 2010)
New Revision: 20238
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTogglePanel/
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTogglePanel/TestRichTogglePanel.java
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
Log:
https://jira.jboss.org/browse/RFPL-675
* toggle panel's sample improved
* added 29 tests for toggle panel
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java 2010-11-30
16:18:25 UTC (rev 20237)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java 2010-11-30
16:18:30 UTC (rev 20238)
@@ -28,6 +28,7 @@
import javax.faces.bean.ViewScoped;
import org.richfaces.component.html.HtmlTogglePanel;
+import org.richfaces.event.ItemChangeEvent;
import org.richfaces.tests.metamer.Attributes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -70,4 +71,8 @@
public void setAttributes(Attributes attributes) {
this.attributes = attributes;
}
+
+ public void itemChangeListener(ItemChangeEvent event) {
+ RichBean.logToPage("* item changed " + event.getOldItem() + "
-> " + event.getNewItem());
+ }
}
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-11-30
16:18:25 UTC (rev 20237)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-11-30
16:18:30 UTC (rev 20238)
@@ -2,7 +2,7 @@
<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
-
xmlns:rich="http://richfaces.org/rich">
+
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<!--
JBoss, Home of Professional Open Source
@@ -41,18 +41,35 @@
<ui:define name="component">
- <h:commandLink id="tcLink1" value="Toggle Panel Item
1">
+ <h:commandLink id="tcLink1" value="Item 1">
<rich:toggleControl targetPanel="richTogglePanel"
targetItem="item1" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink id="tcLink2" value="Toggle Panel Item
2">
+ <h:commandLink id="tcLink2" value="Item 2">
<rich:toggleControl targetPanel="richTogglePanel"
targetItem="item2" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink id="tcLink3" value="Toggle Panel Item
3">
+ <h:commandLink id="tcLink3" value="Item 3">
<rich:toggleControl targetPanel="richTogglePanel"
targetItem="item3" />
</h:commandLink>
+ <br/>
+ <h:commandLink id="tcFirst" value="First Item">
+ <rich:toggleControl targetPanel="richTogglePanel"
targetItem="@first" />
+ </h:commandLink>
+ <h:outputText value=" | " />
+ <h:commandLink id="tcPrev" value="Prev Item">
+ <rich:toggleControl targetPanel="richTogglePanel"
targetItem="@prev" />
+ </h:commandLink>
+ <h:outputText value=" | " />
+ <h:commandLink id="tcNext" value="Next Item">
+ <rich:toggleControl targetPanel="richTogglePanel"
targetItem="@next" />
+ </h:commandLink>
+ <h:outputText value=" | " />
+ <h:commandLink id="tcLast" value="Last Item">
+ <rich:toggleControl targetPanel="richTogglePanel"
targetItem="@last" />
+ </h:commandLink>
+
<br/><br/>
<rich:togglePanel id="richTogglePanel"
@@ -63,6 +80,7 @@
dir="#{richTogglePanelBean.attributes['dir'].value}"
execute="#{richTogglePanelBean.attributes['execute'].value}"
immediate="#{richTogglePanelBean.attributes['immediate'].value}"
+
itemChangeListener="#{richTogglePanelBean.itemChangeListener}"
lang="#{richTogglePanelBean.attributes['lang'].value}"
limitToList="#{richTogglePanelBean.attributes['limitToList'].value}"
onbeforeitemchange="#{richTogglePanelBean.attributes['onbeforeitemchange'].value}"
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTogglePanel/TestRichTogglePanel.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTogglePanel/TestRichTogglePanel.java
(rev 0)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTogglePanel/TestRichTogglePanel.java 2010-11-30
16:18:30 UTC (rev 20238)
@@ -0,0 +1,409 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.richTogglePanel;
+
+import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardHttp;
+import static
org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardNoRequest;
+import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardXhr;
+import static org.jboss.test.selenium.locator.LocatorFactory.jq;
+import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.assertNotSame;
+
+import java.net.URL;
+
+import javax.faces.event.PhaseId;
+
+import org.jboss.test.selenium.dom.Event;
+import org.jboss.test.selenium.encapsulated.JavaScript;
+import org.jboss.test.selenium.locator.ElementLocator;
+import org.jboss.test.selenium.locator.JQueryLocator;
+import org.jboss.test.selenium.waiting.EventFiredCondition;
+import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
+import org.testng.annotations.Test;
+
+/**
+ * Test case for page /faces/components/richTogglePanel/simple.xhtml
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+public class TestRichTogglePanel extends AbstractMetamerTest {
+
+ private JQueryLocator panel = pjq("div[id$=richTogglePanel]");
+ private JQueryLocator item1 = pjq("div[id$=item1]");
+ private JQueryLocator item2 = pjq("div[id$=item2]");
+ private JQueryLocator item3 = pjq("div[id$=item3]");
+ // toggle controls
+ private JQueryLocator tc1 = pjq("a[id$=tcLink1]");
+ private JQueryLocator tc2 = pjq("a[id$=tcLink2]");
+ private JQueryLocator tc3 = pjq("a[id$=tcLink3]");
+ private JQueryLocator tcFirst = pjq("a[id$=tcFirst]");
+ private JQueryLocator tcPrev = pjq("a[id$=tcPrev]");
+ private JQueryLocator tcNext = pjq("a[id$=tcNext]");
+ private JQueryLocator tcLast = pjq("a[id$=tcLast]");
+
+ @Override
+ public URL getTestUrl() {
+ return buildUrl(contextPath,
"faces/components/richTogglePanel/simple.xhtml");
+ }
+
+ @Test
+ public void testInit() {
+ assertTrue(selenium.isElementPresent(panel), "Toggle panel is not present on
the page.");
+ assertTrue(selenium.isVisible(panel), "Toggle panel is not visible.");
+ assertTrue(selenium.isElementPresent(item1), "Item 1 is not present on the
page.");
+ assertTrue(selenium.isVisible(item1), "Item 1 is not visible.");
+ assertTrue(selenium.isElementPresent(item2), "Item 2 is not present on the
page.");
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertTrue(selenium.isElementPresent(item3), "Item 3 is not present on the
page.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+ }
+
+ @Test
+ public void testSwitchTypeNull() {
+ guardXhr(selenium).click(tc3);
+ waitGui.failWith("Item 3 is not
displayed.").until(isDisplayed.locator(item3));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+
+ guardXhr(selenium).click(tc2);
+ waitGui.failWith("Item 2 is not
displayed.").until(isDisplayed.locator(item2));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+
+ guardXhr(selenium).click(tc1);
+ waitGui.failWith("Item 1 is not
displayed.").until(isDisplayed.locator(item1));
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+ }
+
+ @Test
+ public void testSwitchTypeAjax() {
+ selenium.click(pjq("input[name$=switchTypeInput][value=ajax]"));
+ selenium.waitForPageToLoad();
+
+ testSwitchTypeNull();
+ }
+
+ @Test
+ public void testSwitchTypeClient() {
+ selenium.click(pjq("input[name$=switchTypeInput][value=client]"));
+ selenium.waitForPageToLoad();
+
+ guardNoRequest(selenium).click(tc3);
+ waitGui.failWith("Item 3 is not
displayed.").until(isDisplayed.locator(item3));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+
+ guardNoRequest(selenium).click(tc2);
+ waitGui.failWith("Item 2 is not
displayed.").until(isDisplayed.locator(item2));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+
+ guardNoRequest(selenium).click(tc1);
+ waitGui.failWith("Item 1 is not
displayed.").until(isDisplayed.locator(item1));
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+ }
+
+ @Test
+ public void testSwitchTypeServer() {
+ selenium.click(pjq("input[name$=switchTypeInput][value=server]"));
+ selenium.waitForPageToLoad();
+
+ guardHttp(selenium).click(tc3);
+ assertTrue(selenium.isVisible(item3), "Item 3 should be visible.");
+ assertFalse(selenium.isElementPresent(item1), "Item 1 should not be
present.");
+ assertFalse(selenium.isElementPresent(item2), "Item 2 should not be
present.");
+
+ guardHttp(selenium).click(tc2);
+ assertTrue(selenium.isVisible(item2), "Item 2 should be visible.");
+ assertFalse(selenium.isElementPresent(item1), "Item 1 should not be
present.");
+ assertFalse(selenium.isElementPresent(item3), "Item 3 should not be
present.");
+
+ guardHttp(selenium).click(tc1);
+ assertTrue(selenium.isVisible(item1), "Item 1 should be visible.");
+ assertFalse(selenium.isElementPresent(item2), "Item 2 should not be
present.");
+ assertFalse(selenium.isElementPresent(item3), "Item 3 should not be
present.");
+ }
+
+ @Test
+ public void testFirstLastPrevNextSwitchNull() {
+ guardXhr(selenium).click(tcNext);
+ waitGui.failWith("Next item (2) is not
displayed.").until(isDisplayed.locator(item2));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+
+ guardXhr(selenium).click(tcPrev);
+ waitGui.failWith("Previous item (1) is not
displayed.").until(isDisplayed.locator(item1));
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+
+ guardXhr(selenium).click(tcLast);
+ waitGui.failWith("Last item (3) is not
displayed.").until(isDisplayed.locator(item3));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+
+ guardXhr(selenium).click(tcFirst);
+ waitGui.failWith("First item (1) is not
displayed.").until(isDisplayed.locator(item1));
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+ }
+
+ @Test
+ public void testFirstLastPrevNextSwitchAjax() {
+ selenium.click(pjq("input[name$=switchTypeInput][value=ajax]"));
+ selenium.waitForPageToLoad();
+
+ testFirstLastPrevNextSwitchNull();
+ }
+
+ @Test
+ public void testFirstLastPrevNextSwitchClient() {
+ selenium.click(pjq("input[name$=switchTypeInput][value=client]"));
+ selenium.waitForPageToLoad();
+
+ guardNoRequest(selenium).click(tcNext);
+ waitGui.failWith("Next item (2) is not
displayed.").until(isDisplayed.locator(item2));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+
+ guardNoRequest(selenium).click(tcPrev);
+ waitGui.failWith("Previous item (1) is not
displayed.").until(isDisplayed.locator(item1));
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+
+ guardNoRequest(selenium).click(tcLast);
+ waitGui.failWith("Last item (3) is not
displayed.").until(isDisplayed.locator(item3));
+ assertFalse(selenium.isVisible(item1), "Item 1 should not be
visible.");
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+
+ guardNoRequest(selenium).click(tcFirst);
+ waitGui.failWith("First item (1) is not
displayed.").until(isDisplayed.locator(item1));
+ assertFalse(selenium.isVisible(item2), "Item 2 should not be
visible.");
+ assertFalse(selenium.isVisible(item3), "Item 3 should not be
visible.");
+ }
+
+ @Test
+ public void testFirstLastPrevNextSwitchServer() {
+ selenium.click(pjq("input[name$=switchTypeInput][value=server]"));
+ selenium.waitForPageToLoad();
+
+ guardHttp(selenium).click(tcNext);
+ assertTrue(selenium.isVisible(item2), "Next item (2) should be
visible.");
+ assertFalse(selenium.isElementPresent(item1), "Item 1 should not be
present.");
+ assertFalse(selenium.isElementPresent(item3), "Item 3 should not be
present.");
+
+ guardHttp(selenium).click(tcPrev);
+ assertTrue(selenium.isVisible(item1), "Previous item (2) should be
visible.");
+ assertFalse(selenium.isElementPresent(item2), "Item 2 should not be
present.");
+ assertFalse(selenium.isElementPresent(item3), "Item 3 should not be
present.");
+
+ guardHttp(selenium).click(tcLast);
+ assertTrue(selenium.isVisible(item3), "Last item (3) should be
visible.");
+ assertFalse(selenium.isElementPresent(item1), "Item 1 should not be
present.");
+ assertFalse(selenium.isElementPresent(item2), "Item 2 should not be
present.");
+
+ guardHttp(selenium).click(tcFirst);
+ assertTrue(selenium.isVisible(item1), "First item (1) should be
visible.");
+ assertFalse(selenium.isElementPresent(item2), "Item 2 should not be
present.");
+ assertFalse(selenium.isElementPresent(item3), "Item 3 should not be
present.");
+ }
+
+ @Test
+ public void testBypassUpdates() {
+ JQueryLocator input =
pjq("input[type=radio][name$=bypassUpdatesInput][value=true]");
+ selenium.click(input);
+ selenium.waitForPageToLoad();
+
+ selenium.click(tc3);
+ waitGui.failWith("Item 3 is not
displayed.").until(isDisplayed.locator(item3));
+
+ assertPhases(PhaseId.RESTORE_VIEW, PhaseId.APPLY_REQUEST_VALUES,
PhaseId.PROCESS_VALIDATIONS,
+ PhaseId.RENDER_RESPONSE);
+
+ String listenerOutput = selenium.getText(jq("div#phasesPanel
li:eq(3)"));
+ assertEquals(listenerOutput, "* item changed item1 -> item3",
"Item change listener's output");
+ }
+
+ @Test
+ public void testCycledSwitching() {
+
selenium.click(pjq("input[type=radio][name$=cycledSwitchingInput][value=true]"));
+ selenium.waitForPageToLoad();
+
+ guardXhr(selenium).click(tcPrev);
+ waitGui.failWith("Previous item (3) is not
displayed.").until(isDisplayed.locator(item3));
+ guardXhr(selenium).click(tcNext);
+ waitGui.failWith("Next item (1) is not
displayed.").until(isDisplayed.locator(item1));
+ }
+
+ @Test
+ public void testDir() {
+ super.testDir(panel);
+ }
+
+ @Test
+ public void testImmediate() {
+ JQueryLocator input =
pjq("input[type=radio][name$=immediateInput][value=true]");
+ selenium.click(input);
+ selenium.waitForPageToLoad();
+
+ selenium.click(tc3);
+ waitGui.failWith("Item 3 is not
displayed.").until(isDisplayed.locator(item3));
+
+ assertPhases(PhaseId.RESTORE_VIEW, PhaseId.APPLY_REQUEST_VALUES,
PhaseId.RENDER_RESPONSE);
+
+ String listenerOutput = selenium.getText(jq("div#phasesPanel
li:eq(2)"));
+ assertEquals(listenerOutput, "* item changed item1 -> item3",
"Item change listener's output");
+ }
+
+ @Test
+ public void testLang() {
+ testLang(panel);
+ }
+
+ @Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9881")
+ public void testLimitToList() {
+ JQueryLocator timeLoc = jq("span[id$=requestTime]");
+
+ selenium.type(pjq("input[type=text][id$=renderInput]"),
"@this");
+ selenium.waitForPageToLoad();
+
+
selenium.click(pjq("input[type=radio][name$=limitToListInput][value=true]"));
+ selenium.waitForPageToLoad();
+
+ String time = selenium.getText(timeLoc);
+
+ guardXhr(selenium).click(tc2);
+ waitGui.failWith("Item 2 is not
displayed.").until(isDisplayed.locator(item2));
+
+ String newTime = selenium.getText(timeLoc);
+ assertEquals(newTime, time, "Panel with ajaxRendered=true should not be
rerendered.");
+ }
+
+ @Test
+ public void testOnbeforeitemchange() {
+ selenium.type(pjq("input[id$=onbeforeitemchangeInput]"),
"metamerEvents += \"onbeforeitemchange \"");
+ selenium.waitForPageToLoad();
+
+ guardXhr(selenium).click(tc2);
+ waitGui.failWith("Item 2 is not
displayed.").until(isDisplayed.locator(item2));
+
+ waitGui.failWith("onbeforeitemchange attribute does not work
correctly").until(new EventFiredCondition(new Event("beforeitemchange")));
+ }
+
+ @Test
+ public void testItemchangeEvents() {
+ JQueryLocator time = jq("span[id$=requestTime]");
+
+ selenium.type(pjq("input[type=text][id$=onbeforeitemchangeInput]"),
"metamerEvents += \"beforeitemchange \"");
+ selenium.waitForPageToLoad();
+ selenium.type(pjq("input[type=text][id$=onitemchangeInput]"),
"metamerEvents += \"itemchange \"");
+ selenium.waitForPageToLoad();
+
+ selenium.getEval(new JavaScript("window.metamerEvents =
\"\";"));
+ String time1Value = selenium.getText(time);
+
+ guardXhr(selenium).click(tc2);
+ waitGui.failWith("Page was not updated").waitForChange(time1Value,
retrieveText.locator(time));
+
+ String[] events = selenium.getEval(new
JavaScript("window.metamerEvents")).split(" ");
+
+ assertEquals(events[0], "beforeitemchange", "Attribute
onbeforeitemchange doesn't work");
+ assertEquals(events[1], "itemchange", "Attribute
onbeforeitemchange doesn't work");
+ }
+
+ @Test
+ public void testOnclick() {
+ testFireEvent(Event.CLICK, panel);
+ }
+
+ @Test
+ public void testOndblclick() {
+ testFireEvent(Event.DBLCLICK, panel);
+ }
+
+ @Test
+ public void testOnitemchange() {
+ selenium.type(pjq("input[id$=onitemchangeInput]"), "metamerEvents
+= \"onitemchange \"");
+ selenium.waitForPageToLoad(TIMEOUT);
+
+ guardXhr(selenium).click(tc2);
+ waitGui.failWith("Item 2 is not
displayed.").until(isDisplayed.locator(item2));
+
+ waitGui.failWith("onitemchange attribute does not work
correctly").until(new EventFiredCondition(new Event("itemchange")));
+ }
+
+ @Test
+ public void testOnmousedown() {
+ testFireEvent(Event.MOUSEDOWN, panel);
+ }
+
+ @Test
+ public void testOnmousemove() {
+ testFireEvent(Event.MOUSEMOVE, panel);
+ }
+
+ @Test
+ public void testOnmouseout() {
+ testFireEvent(Event.MOUSEOUT, panel);
+ }
+
+ @Test
+ public void testOnmouseover() {
+ testFireEvent(Event.MOUSEOVER, panel);
+ }
+
+ @Test
+ public void testOnmouseup() {
+ testFireEvent(Event.MOUSEUP, panel);
+ }
+
+ @Test
+ public void testRendered() {
+ JQueryLocator input =
pjq("input[type=radio][name$=renderedInput][value=false]");
+ selenium.click(input);
+ selenium.waitForPageToLoad();
+
+ assertFalse(selenium.isElementPresent(panel), "Toggle panel should not be
rendered when rendered=false.");
+ }
+
+ @Test
+ public void testStyle() {
+ testStyle(panel, "style");
+ }
+
+ @Test
+ public void testStyleClass() {
+ testStyleClass(panel, "styleClass");
+ }
+
+ @Test
+ public void testTitle() {
+ testTitle(panel);
+ }
+}
Property changes on:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTogglePanel/TestRichTogglePanel.java
___________________________________________________________________
Name: svn:keywords
+ Revision