Author: ppitonak(a)redhat.com
Date: 2010-11-05 10:46:12 -0400 (Fri, 05 Nov 2010)
New Revision: 19958
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/AbstractTestCommand.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHGraphicImage.java
Log:
https://jira.jboss.org/browse/RFPL-817
* tests for a4j:ajax fixed
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/AbstractTestCommand.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/AbstractTestCommand.java 2010-11-05
14:39:20 UTC (rev 19957)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/AbstractTestCommand.java 2010-11-05
14:46:12 UTC (rev 19958)
@@ -150,6 +150,7 @@
String[] events = selenium.getEval(new
JavaScript("window.metamerEvents")).split(" ");
+ assertEquals(events.length, 3, "3 events should be fired.");
assertEquals(events[0], "begin", "Attribute onbegin doesn't
work");
assertEquals(events[1], "beforedomupdate", "Attribute
onbeforedomupdate doesn't work");
assertEquals(events[2], "complete", "Attribute oncomplete
doesn't work");
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHGraphicImage.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHGraphicImage.java 2010-11-05
14:39:20 UTC (rev 19957)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHGraphicImage.java 2010-11-05
14:46:12 UTC (rev 19958)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
/**
@@ -49,6 +50,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleClickUnicode() {
super.testClick(button, "ľščťžýáíéúôň фывацукйешгщь");
}
@@ -85,6 +87,6 @@
@Test
public void testRender() {
- super.testEvents(button);
+ super.testRender(button);
}
}