Author: ppitonak(a)redhat.com
Date: 2011-01-21 06:37:44 -0500 (Fri, 21 Jan 2011)
New Revision: 21141
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/PhaseInfo.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java
Log:
* fixed testImmediate and testBypassUpdates
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/PhaseInfo.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/PhaseInfo.java 2011-01-21
10:23:44 UTC (rev 21140)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/PhaseInfo.java 2011-01-21
11:37:44 UTC (rev 21141)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -46,10 +46,8 @@
public class PhaseInfo {
private AjaxSelenium selenium = AjaxSeleniumProxy.getInstance();
-
private TextRetriever retrieveRequestTime =
RetrieverFactory.RETRIEVE_TEXT.locator(jq("span[id$=requestTime]"));
private JQueryLocator phasesItems = jq("div#phasesPanel li");
-
private Map<PhaseId, Set<String>> map = new LinkedHashMap<PhaseId,
Set<String>>();
/**
@@ -90,7 +88,7 @@
int count = selenium.getCount(phasesItems);
Set<String> set;
- for (int i = 0; i < count; i++) {
+ for (int i = 1; i <= count; i++) {
String description =
selenium.getText(phasesItems.getNthChildElement(i));
set = new LinkedHashSet<String>();
@@ -111,5 +109,4 @@
}
throw new IllegalStateException("no such phase '" + phaseIdentifier
+ "'");
}
-
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java 2011-01-21
10:23:44 UTC (rev 21140)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java 2011-01-21
11:37:44 UTC (rev 21141)
@@ -1,6 +1,6 @@
/*******************************************************************************
* JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
+ * Copyright 2010-2011, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*