Author: konstantin.mishin
Date: 2009-09-18 13:05:53 -0400 (Fri, 18 Sep 2009)
New Revision: 15626
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java
Log:
RFPL-143
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-18
15:56:22 UTC (rev 15625)
+++
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-18
17:05:53 UTC (rev 15626)
@@ -4,7 +4,7 @@
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
- <div style="height: 30px; width: 1000px; overflow: hidden;">
+ <div style="height: 50px; width: 300px; overflow: scroll;">
<h:inputHidden id="_auto_input" value="#{autoTestBean.input}"
required="true"></h:inputHidden>
<h:outputText id="_auto_request_params"
value="#{requestBean.paramString}" />
<h:inputHidden id="_auto_process_input"
value="#{autoTestBean.processInput}"
valueChangeListener="#{autoTestBean.processInputChangeListener}"></h:inputHidden>
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java
===================================================================
---
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java 2009-09-18
15:56:22 UTC (rev 15625)
+++
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java 2009-09-18
17:05:53 UTC (rev 15626)
@@ -231,8 +231,7 @@
* by testing "directInputSuggestions", "filterNewValues",
* "selectFirstOnUpdate" attributes.
*/
- //https://jira.jboss.org/jira/browse/RF-7910
- @Test(groups=FAILURES_GROUP)
+ @Test()
public void testSelectionFilteringAndPresentation(Template template) {
init(template);
type(comboboxField, "c");
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java
===================================================================
---
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java 2009-09-18
15:56:22 UTC (rev 15625)
+++
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java 2009-09-18
17:05:53 UTC (rev 15626)
@@ -445,14 +445,14 @@
assertClassNames(getPageLinkRefScript(5, dataScrollerTableId), activePageClasses,
"'3' link should current", false);
assertClassNames(getPageLinkRefScript(3, dataScrollerTableId), inactivePageClasses,
"'1' link should be inactive", false);
- assertClassNames(getPageLinkRefScript(0, dataScrollerTableId), activeForwardClasses,
"'��' control should be accessible", false);
- assertClassNames(getPageLinkRefScript(1, dataScrollerTableId), activeForwardClasses,
"'�' control should be accessible", false);
+ assertClassNames(getPageLinkRefScript(0, dataScrollerTableId), activeForwardClasses,
"'««' control should be accessible", false);
+ assertClassNames(getPageLinkRefScript(1, dataScrollerTableId), activeForwardClasses,
"'«' control should be accessible", false);
if(paired){
assertClassNames(getPageLinkRefScript(5, secondDataScrollerTableId),
activePageClasses, "'3' link should current", false);
assertClassNames(getPageLinkRefScript(3, secondDataScrollerTableId),
inactivePageClasses, "'1' link should be inactive", false);
- assertClassNames(getPageLinkRefScript(0, secondDataScrollerTableId),
activeForwardClasses, "'��' control should be accessible", false);
- assertClassNames(getPageLinkRefScript(1, secondDataScrollerTableId),
activeForwardClasses, "'�' control should be accessible", false);
+ assertClassNames(getPageLinkRefScript(0, secondDataScrollerTableId),
activeForwardClasses, "'««' control should be accessible", false);
+ assertClassNames(getPageLinkRefScript(1, secondDataScrollerTableId),
activeForwardClasses, "'«' control should be accessible", false);
}
if(paired){
@@ -468,11 +468,11 @@
clickControl(15, dataScrollerTableId);
testData(1, "Page 10");
- assertClassNames(getPageLinkRefScript(15, dataScrollerTableId), inactiveForwardClasses,
"'��' control should be inactive", false);
- assertClassNames(getPageLinkRefScript(14, dataScrollerTableId), inactiveForwardClasses,
"'�' control should be inactive", false);
+ assertClassNames(getPageLinkRefScript(15, dataScrollerTableId), inactiveForwardClasses,
"'»»' control should be inactive", false);
+ assertClassNames(getPageLinkRefScript(14, dataScrollerTableId), inactiveForwardClasses,
"'»' control should be inactive", false);
if(paired){
- assertClassNames(getPageLinkRefScript(15, secondDataScrollerTableId),
inactiveForwardClasses, "'��' control should be inactive", false);
- assertClassNames(getPageLinkRefScript(14, secondDataScrollerTableId),
inactiveForwardClasses, "'�' control should be inactive", false);
+ assertClassNames(getPageLinkRefScript(15, secondDataScrollerTableId),
inactiveForwardClasses, "'»»' control should be inactive", false);
+ assertClassNames(getPageLinkRefScript(14, secondDataScrollerTableId),
inactiveForwardClasses, "'»' control should be inactive", false);
}
if(paired){
@@ -481,12 +481,12 @@
clickControl(1, dataScrollerTableId);
}
testData(1, "Page 9");
- assertClassNames(getPageLinkRefScript(0, dataScrollerTableId), activeForwardClasses,
"'��' control should be active", false);
- assertClassNames(getPageLinkRefScript(1, dataScrollerTableId), activeForwardClasses,
"'�' control should be active", false);
+ assertClassNames(getPageLinkRefScript(0, dataScrollerTableId), activeForwardClasses,
"'»»' control should be active", false);
+ assertClassNames(getPageLinkRefScript(1, dataScrollerTableId), activeForwardClasses,
"'»' control should be active", false);
assertClassNames(getPageLinkRefScript(11, dataScrollerTableId), activePageClasses,
"'9' link should be current", false);
if(paired){
- assertClassNames(getPageLinkRefScript(0, secondDataScrollerTableId),
activeForwardClasses, "'��' control should be active", false);
- assertClassNames(getPageLinkRefScript(1, secondDataScrollerTableId),
activeForwardClasses, "'�' control should be active", false);
+ assertClassNames(getPageLinkRefScript(0, secondDataScrollerTableId),
activeForwardClasses, "'»»' control should be active", false);
+ assertClassNames(getPageLinkRefScript(1, secondDataScrollerTableId),
activeForwardClasses, "'»' control should be active", false);
assertClassNames(getPageLinkRefScript(11, secondDataScrollerTableId),
activePageClasses, "'9' link should be current", false);
}
@@ -564,15 +564,15 @@
}
private void testControls() {
- // Check '��' link
+ // Check '««' link
String text = selenium.getTable("id=" + dataScrollerTableId +
".0.0");
- Assert.assertEquals("��", text, "DataScroller does not contain
'��' link or its position is invalid");
+ Assert.assertEquals("\u0171\u0171", text, "DataScroller does not contain
'««' link or its position is invalid");
assertClassNames(getPageLinkRefScript(0, dataScrollerTableId),inactiveForwardClasses,
"DataScroller rendering failed: ", false);
- // Check '�' link
+ // Check '«' link
text = selenium.getTable("id=" + dataScrollerTableId + ".0.1");
- Assert.assertEquals("�", text, "DataScroller does not contain
'�' link or its position is invalid");
+ Assert.assertEquals("\u0171", text, "DataScroller does not contain
'«' link or its position is invalid");
assertClassNames(getPageLinkRefScript(1, dataScrollerTableId),inactiveForwardClasses,
"DataScroller rendering failed: ", false);
@@ -588,15 +588,15 @@
assertClassNames(getPageLinkRefScript(7, dataScrollerTableId),inactivePageClasses,
"DataScroller rendering failed: ", false);
- // Check '�' link
+ // Check '»' link
text = selenium.getTable("id=" + dataScrollerTableId + ".0.14");
- Assert.assertEquals("�", text, "DataScroller does not contain
'�' link or its position is invalid");
+ Assert.assertEquals("\u0187", text, "DataScroller does not contain
'»' link or its position is invalid");
assertClassNames(getPageLinkRefScript(14, dataScrollerTableId),activeForwardClasses,
"DataScroller rendering failed: ", false);
- // Check '��' link
+ // Check '»»' link
text = selenium.getTable("id=" + dataScrollerTableId + ".0.15");
- Assert.assertEquals("��", text, "DataScroller does not contain
'��' link or its position is invalid");
+ Assert.assertEquals("\u0187\u0187", text, "DataScroller does not contain
'»»' link or its position is invalid");
assertClassNames(getPageLinkRefScript(15, dataScrollerTableId),activeForwardClasses,
"DataScroller rendering failed: ", false);
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java
===================================================================
---
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java 2009-09-18
15:56:22 UTC (rev 15625)
+++
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java 2009-09-18
17:05:53 UTC (rev 15626)
@@ -57,8 +57,7 @@
}
- //https://jira.jboss.org/jira/browse/RF-7908
- @Test(groups=FAILURES_GROUP)
+ @Test()
public void testClassStylesAndHtmlAttributes(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);