Author: ppitonak(a)redhat.com
Date: 2011-08-15 05:10:11 -0400 (Mon, 15 Aug 2011)
New Revision: 22630
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPopupPanelBean.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPopupPanel/TestRichPopupPanel.java
Log:
sample and tests for rich:popupPanel fixed
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPopupPanelBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPopupPanelBean.java 2011-08-12
13:59:42 UTC (rev 22629)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPopupPanelBean.java 2011-08-15
09:10:11 UTC (rev 22630)
@@ -72,6 +72,7 @@
attributes.setAttribute("top", "auto");
attributes.setAttribute("trimOverlayedElements", true);
attributes.setAttribute("width", 500);
+ attributes.setAttribute("zindex", 4);
}
public Attributes getAttributes() {
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPopupPanel/TestRichPopupPanel.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPopupPanel/TestRichPopupPanel.java 2011-08-12
13:59:42 UTC (rev 22629)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPopupPanel/TestRichPopupPanel.java 2011-08-15
09:10:11 UTC (rev 22630)
@@ -49,21 +49,21 @@
private JQueryLocator openButton = pjq("input[id$=openPanelButton]");
private JQueryLocator panel = pjq("div[id$=popupPanel]");
- private JQueryLocator panelContainer = jq("div.rf-pp-cntr");
- private JQueryLocator content = jq("div.rf-pp-cnt");
- private JQueryLocator header = jq("div.rf-pp-hdr");
- private JQueryLocator controls = jq("div.rf-pp-hdr-cntrls a");
- private JQueryLocator scroller = jq("div.rf-pp-cnt-scrlr");
- private JQueryLocator shadow = jq("div.rf-pp-shdw");
- private JQueryLocator resizerW = jq("div.rf-pp-hndlr-l");
- private JQueryLocator resizerN = jq("div.rf-pp-hndlr-t");
- private JQueryLocator resizerE = jq("div.rf-pp-hndlr-r");
- private JQueryLocator resizerS = jq("div.rf-pp-hndlr-b");
- private JQueryLocator resizerNW = jq("div.rf-pp-hndlr-tl");
- private JQueryLocator resizerNE = jq("div.rf-pp-hndlr-tr");
- private JQueryLocator resizerSW = jq("div.rf-pp-hndlr-bl");
- private JQueryLocator resizerSE = jq("div.rf-pp-hndlr-br");
- private JQueryLocator mask = jq("div.rf-pp-shade");
+ private JQueryLocator panelContainer =
jq("div[id$=popupPanel_container].rf-pp-cntr");
+ private JQueryLocator content = jq("div[id$=popupPanel_container]
div.rf-pp-cnt");
+ private JQueryLocator header = jq("div[id$=popupPanel_container]
div.rf-pp-hdr");
+ private JQueryLocator controls = jq("div[id$=popupPanel_container]
div.rf-pp-hdr-cntrls a");
+ private JQueryLocator scroller = jq("div[id$=popupPanel_container]
div.rf-pp-cnt-scrlr");
+ private JQueryLocator shadow = jq("div[id$=popupPanel_container]
div.rf-pp-shdw");
+ private JQueryLocator resizerW = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-l");
+ private JQueryLocator resizerN = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-t");
+ private JQueryLocator resizerE = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-r");
+ private JQueryLocator resizerS = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-b");
+ private JQueryLocator resizerNW = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-tl");
+ private JQueryLocator resizerNE = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-tr");
+ private JQueryLocator resizerSW = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-bl");
+ private JQueryLocator resizerSE = jq("div[id$=popupPanel_container]
div.rf-pp-hndlr-br");
+ private JQueryLocator mask = jq("div[id$=popupPanel_shade].rf-pp-shade");
@Override
public URL getTestUrl() {
@@ -512,7 +512,7 @@
public void testZindex() {
selenium.click(openButton);
waitGui.failWith("Panel was not
opened.").until(isDisplayed.locator(panel));
- assertEquals(selenium.getStyle(panelContainer, new
CssProperty("z-index")), "0", "Zindex of the panel");
+ assertEquals(selenium.getStyle(panelContainer, new
CssProperty("z-index")), "4", "Zindex of the panel");
selenium.type(pjq("input[id$=zindexInput]"), "30");
selenium.waitForPageToLoad();