Author: jpapouse
Date: 2011-09-26 03:21:10 -0400 (Mon, 26 Sep 2011)
New Revision: 22760
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingList.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingListAttributes.java
Log:
tests for ondblclick and onlistdblclick attributes
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingList.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingList.java 2011-09-26
07:20:15 UTC (rev 22759)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingList.java 2011-09-26
07:21:10 UTC (rev 22760)
@@ -21,14 +21,14 @@
*******************************************************************************/
package org.richfaces.tests.metamer.ftest.richOrderingList;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertTrue;
+
import java.net.URL;
import org.jboss.test.selenium.utils.URLUtils;
-import org.richfaces.tests.metamer.ftest.model.OrderingList;
import org.testng.annotations.Test;
-import static org.testng.Assert.assertFalse;
-import static org.testng.Assert.assertTrue;
-import static org.testng.Assert.assertEquals;
/**
* Selenium tests for page faces/components/richOrderingList/withColumn.xhtml.
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingListAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingListAttributes.java 2011-09-26
07:20:15 UTC (rev 22759)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richOrderingList/TestOrderingListAttributes.java 2011-09-26
07:21:10 UTC (rev 22760)
@@ -21,25 +21,20 @@
*******************************************************************************/
package org.richfaces.tests.metamer.ftest.richOrderingList;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.fail;
+
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
-import javax.swing.plaf.basic.BasicInternalFrameTitlePane.RestoreAction;
-
import org.jboss.test.selenium.css.CssProperty;
import org.jboss.test.selenium.dom.Event;
import org.jboss.test.selenium.locator.JQueryLocator;
import org.jboss.test.selenium.utils.URLUtils;
-import org.jboss.test.selenium.waiting.EventFiredCondition;
-import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
-import org.richfaces.tests.metamer.ftest.model.OrderingList;
import org.testng.annotations.Test;
-import static org.testng.Assert.assertTrue;
-import static org.testng.Assert.assertFalse;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.fail;
-import static org.jboss.test.selenium.locator.LocatorFactory.jq;
/**
* Selenium tests for page faces/components/richOrderingList/withColumn.xhtml.
@@ -127,10 +122,9 @@
testFireEvent(Event.CLICK, getOrderingList().getLocator());
}
- @Test(enabled=false)
- @IssueTracking("https://issues.jboss.org/browse/RF-11318")
+ @Test
public void testOndblclick() {
- // TODO
+ testFireEvent(Event.DBLCLICK, getOrderingList().getLocator());
}
@Test(enabled=false)
@@ -158,9 +152,9 @@
testFireEvent(Event.CLICK, getOrderingList().getList(), "listclick");
}
- @Test(enabled=false)
+ @Test
public void testOnlistdblclick() {
- // TODO
+ testFireEvent(Event.DBLCLICK, getOrderingList().getList(),
"listdblclick");
}
@Test
@@ -246,6 +240,11 @@
super.testStyle(getOrderingList().getLocator());
}
+ @Test(enabled=false)
+ public void testValueChangeListener() {
+
+ }
+
private void testSizeCssProperty(JQueryLocator element, OrderingListAttributes
attribute, CssProperty cssProperty) {
Map<String, String> values = new HashMap<String, String>();
values.put("100", "100px");
Show replies by date