Author: lfryc(a)redhat.com
Date: 2011-03-10 09:52:04 -0500 (Thu, 10 Mar 2011)
New Revision: 22137
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/TestGlobalQueue.java
Log:
global queue - separated testIgnoreDupResponses to tests with true/false value
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/TestGlobalQueue.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/TestGlobalQueue.java 2011-03-10
14:51:25 UTC (rev 22136)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jQueue/TestGlobalQueue.java 2011-03-10
14:52:04 UTC (rev 22137)
@@ -189,8 +189,7 @@
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1194")
- public void testIgnoreDuplicatedResponses() {
+ public void testIgnoreDuplicatedResponsesFalse() {
attributes.setIgnoreDupResponses(false);
XHRHalter.enable();
@@ -207,23 +206,26 @@
handle.complete();
waitGui.dontFail().waitForChange("a",
retrieveText.locator(queue.repeatedText));
assertEquals(queue.getRepeatedText(), "b");
+ }
+ @Test
+ public void testIgnoreDuplicatedResponsesTrue() {
attributes.setIgnoreDupResponses(true);
XHRHalter.enable();
queue.type("c");
queue.fireEvent(1);
- handle = XHRHalter.getHandleBlocking();
+ XHRHalter handle = XHRHalter.getHandleBlocking();
handle.send();
queue.type("d");
queue.fireEvent(1);
handle.complete();
try {
- waitGui.dontFail().waitForChange("b",
retrieveText.locator(queue.repeatedText));
+ waitGui.dontFail().waitForChange("",
retrieveText.locator(queue.repeatedText));
} catch (SeleniumException e) {
// expected timeout
}
- assertEquals(queue.getRepeatedText(), "b");
+ assertEquals(queue.getRepeatedText(), "");
handle.waitForOpen();
handle.complete();
waitGui.dontFail().waitForChange("b",
retrieveText.locator(queue.repeatedText));