Author: jjamrich
Date: 2012-01-24 04:12:17 -0500 (Tue, 24 Jan 2012)
New Revision: 23175
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richContextMenu/TestRichContextMenu.java
Log:
F-10197: Add test for @rendered for rich:contextMenu
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richContextMenu/TestRichContextMenu.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richContextMenu/TestRichContextMenu.java 2012-01-24
09:12:01 UTC (rev 23174)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richContextMenu/TestRichContextMenu.java 2012-01-24
09:12:17 UTC (rev 23175)
@@ -77,7 +77,7 @@
// mouseDownRight doesn't work, so have to use left click for common cases
contextMenuAttributes.set(showEvent, "click");
- Point position = selenium.getElementPosition(target);
+ Point position = selenium.getElementPosition(target);
selenium.clickAt(target, position.minus(new Point(0, 70)));
}
@@ -284,9 +284,11 @@
}
- // @Test
+ @Test
public void testRendered() {
-
+ contextMenuAttributes.set(rendered, Boolean.FALSE);
+ clickOnTarget(menuElem);
+ assertTrue(selenium.isElementPresent(contextMenuContent));
}
// @Test