JBoss Rich Faces SVN: r12875 - in trunk/test-applications/realworld2/web/src/main: webapp/includes/image and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2009-03-06 11:56:28 -0500 (Fri, 06 Mar 2009)
New Revision: 12875
Added:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/ImageSizeHelper.java
trunk/test-applications/realworld2/web/src/main/webapp/includes/misc/inputNumberSlider.xhtml
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/image/userImagesPreview.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld2.css
Log:
Slider for image size change
Added: trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/ImageSizeHelper.java
===================================================================
--- trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/ImageSizeHelper.java (rev 0)
+++ trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/ui/ImageSizeHelper.java 2009-03-06 16:56:28 UTC (rev 12875)
@@ -0,0 +1,75 @@
+/**
+ *
+ */
+package org.richfaces.realworld.ui;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * @author Andrey Markavtsov
+ *
+ */
+@Name("imageSizeHelper")
+(a)Scope(ScopeType.CONVERSATION)
+public class ImageSizeHelper {
+
+ int value;
+
+ final static String CSS_CLASS = "preview_box_album_";
+
+ final static String FILE_POSTFIX = "_small";
+
+ public static enum ImageDimension {
+
+ SIZE1 (80, 60),
+ SIZE2 (120, 80),
+ SIZE3 (160, 100),
+ SIZE4 (160, 100);
+
+ int x;
+ int y;
+
+ private ImageDimension(int x, int y) {
+ this.x = x;
+ this.y = y;
+
+ }
+ public int getX() {
+ return x;
+ }
+
+ public int getY() {
+ return y;
+ }
+
+ public String getCssClass() {
+ return CSS_CLASS + x;
+ }
+
+ public String getFilePostfix() {
+ return FILE_POSTFIX + x;
+ }
+ };
+
+ static ImageDimension [] dimensions = new ImageDimension []
+ {
+ ImageDimension.SIZE1, ImageDimension.SIZE2,
+ ImageDimension.SIZE3, ImageDimension.SIZE4
+ };
+
+ public ImageDimension getCurrentDimension() {
+ return dimensions[value];
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public void setValue(int value) {
+ this.value = value;
+ }
+
+
+}
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/image/userImagesPreview.xhtml
===================================================================
(Binary files differ)
Added: trunk/test-applications/realworld2/web/src/main/webapp/includes/misc/inputNumberSlider.xhtml
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/includes/misc/inputNumberSlider.xhtml (rev 0)
+++ trunk/test-applications/realworld2/web/src/main/webapp/includes/misc/inputNumberSlider.xhtml 2009-03-06 16:56:28 UTC (rev 12875)
@@ -0,0 +1,66 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:richx="http://richfaces.org/richx">
+ <style>
+ .inputSlider {
+ height: auto;
+ margin-right: -7px;
+ margin-left: -3px;
+ position: relative;
+ }
+ .sliderBorder {
+ width: 100%;
+ border-left: 1px solid #636363;
+ height: 4px;
+ }
+ </style>
+ <div>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr style="height: 20px; padding-botton: 3px">
+ <td>
+ <div class="font-size: 9px">80-60</div>
+ </td>
+ <td>
+ <div style="font-size: 9px">120-80</div>
+ </td>
+ <td>
+ <div style="font-size: 9px">160-120</div>
+ </td>
+ <td>
+ <div style="font-size: 9px">500-375</div>
+ </td>
+ </tr>
+ <tr style="height: 4px">
+ <td style="width: 25%">
+ <div class="sliderBorder" style="height: 4px"></div>
+ </td>
+ <td style="width: 25%">
+ <div class="sliderBorder" style="height: 4px"></div>
+ </td>
+ <td style="width: 25%">
+ <div class="sliderBorder" style="border-right: 1px solid #636363;"></div>
+ </td>
+ <td style="width: 25%">
+ <div></div>
+ </td>
+ </tr>
+ <tr><td colspan="3" style="overflow: visible">
+ <rich:inputNumberSlider enableManualInput="false"
+ value="#{imageSizeHelper.value}"
+ minValue="0"
+ maxValue="3"
+ style="height: auto"
+ styleClass="inputSlider"
+ showArrows="false"
+ showBoundaryValues="false"
+ showInput="false"
+ step="1">
+ <a4j:support event="onchange" reRender="userAlbumImages"></a4j:support>
+ </rich:inputNumberSlider>
+ </td><td></td></tr></table>
+ </div>
+</ui:composition>
\ No newline at end of file
Modified: trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld2.css
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld2.css 2009-03-06 16:56:19 UTC (rev 12874)
+++ trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld2.css 2009-03-06 16:56:28 UTC (rev 12875)
@@ -470,4 +470,6 @@
width: 25px;
}
-
+.dr-insldr-vert-spacer {
+ padding: 0px;
+ }
15 years, 10 months
JBoss Rich Faces SVN: r12874 - trunk/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-03-06 11:56:19 -0500 (Fri, 06 Mar 2009)
New Revision: 12874
Modified:
trunk/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js
Log:
https://jira.jboss.org/jira/browse/RF-6466
Modified: trunk/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js
===================================================================
--- trunk/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js 2009-03-06 16:40:45 UTC (rev 12873)
+++ trunk/ui/contextMenu/src/main/resources/org/richfaces/renderkit/html/scripts/context-menu.js 2009-03-06 16:56:19 UTC (rev 12874)
@@ -66,7 +66,7 @@
element = element.parentNode;
}
}
- disableDefaultContextMenu(element, id, event, true);
+ this.disableDefaultContextMenu(element, id, event, true);
this.attachToElement(element, event, context);
},
15 years, 10 months
JBoss Rich Faces SVN: r12873 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/pickList and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2009-03-06 11:40:45 -0500 (Fri, 06 Mar 2009)
New Revision: 12873
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/PickListTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/pickListAutoTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/pickListTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java
Log:
RF-6162, RF-6167, RF-6171, RF-6177
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/PickListTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/PickListTestBean.java 2009-03-06 16:33:55 UTC (rev 12872)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/PickListTestBean.java 2009-03-06 16:40:45 UTC (rev 12873)
@@ -43,6 +43,8 @@
private List<String> result;
+ private boolean switchByClick = false;
+
public PickListTestBean() {
reset();
}
@@ -121,6 +123,27 @@
this.result = result;
}
+ /**
+ * Gets value of switchByClick field.
+ * @return value of switchByClick field
+ */
+ public boolean isSwitchByClick() {
+ return switchByClick;
+ }
+
+ /**
+ * Set a new value for switchByClick field.
+ * @param switchByClick a new value for switchByClick field
+ */
+ public void setSwitchByClick(boolean switchByClick) {
+ this.switchByClick = switchByClick;
+ }
+
+ public void initSwitchByClickTest() {
+ reset();
+ setSwitchByClick(true);
+ }
+
public void reset() {
options = new ArrayList<SelectItem>();
for (String player : ITEMS) {
@@ -131,6 +154,8 @@
result = new ArrayList<String>();
result.add(ITEMS.get(0));
result.add(ITEMS.get(1));
+
+ switchByClick = false;
}
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/pickListAutoTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/pickListTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java 2009-03-06 16:33:55 UTC (rev 12872)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java 2009-03-06 16:40:45 UTC (rev 12873)
@@ -20,11 +20,11 @@
*/
package org.richfaces.testng;
+import static org.ajax4jsf.bean.PickListTestBean.ITEMS;
+
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
import org.ajax4jsf.template.Template;
import org.richfaces.AutoTester;
@@ -32,7 +32,6 @@
import org.richfaces.SeleniumTestBase;
import org.testng.Assert;
import org.testng.annotations.Test;
-import static org.ajax4jsf.bean.PickListTestBean.ITEMS;
public class PickListTest extends SeleniumTestBase {
@@ -41,24 +40,17 @@
private static final String COPY_ALL_BTN = "copyAll";
private static final String REMOVE_BTN = "remove";
private static final String REMOVE_ALL_BTN = "removeAll";
- private static final String SRC_ELEM_PREFIX = ":source::";
private final static String RESET_METHOD = "#{pickListBean.reset}";
+ private final static String INIT_SWITCH_BY_CLICK_TEST = "#{pickListBean.initSwitchByClickTest}";
+
private final static String I18N_TEST_URL = "pages/pickList/testI18N.xhtml";
private final static String LAYOUT_TEST_URL = "pages/pickList/layoutTest.xhtml";
private final static String FACETS_TEST_URL = "pages/pickList/testFacets.xhtml";
- private static Map<String, String> params = new HashMap<String, String>();
-
- static {
- params.put("parameter1", "value1");
- params.put("parameter2", "value2");
- params.put("parameter3", "value3");
- }
-
@Test
public void testPickListComponent(Template template) {
renderPage(template, RESET_METHOD);
@@ -100,14 +92,24 @@
writeStatus("Try to move the first item and check state thereafter");
- String srcElemPrefix = parentId + PICK_LIST + SRC_ELEM_PREFIX;
- fireMouseEvent(srcElemPrefix + "0", "click", 0, 0, false);
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[1]");
clickById(copyElemId);
Assert.assertEquals(getNumberOfChildren(srcListId), 5);
Assert.assertEquals(getNumberOfChildren(destListId), 3);
Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[3]"), "LEONTIEV");
+ writeStatus("Check multiple selection");
+ selenium.controlKeyDown();
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[1]");
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[2]");
+ selenium.controlKeyUp();
+
+ clickById(copyElemId);
+
+ Assert.assertEquals(getNumberOfChildren(srcListId), 3);
+ Assert.assertEquals(getNumberOfChildren(destListId), 5);
+
writeStatus("Test 'MOVE ALL' button");
clickById(copyAllElemId);
@@ -134,34 +136,146 @@
}
@Test
- public void testValueChangeEventFiredAndModelUpdatedOnSubmit(Template template) {
- AutoTester tester = getAutoTester(this);
- tester.renderPage(template, RESET_METHOD);
- String resultId = tester.getClientId("result");
+ public void testJSAPI(Template template) {
+ renderPage(template, RESET_METHOD);
- writeStatus("Check ValueChangeListeners invoked on submit and model binding is updated on value changed");
+ writeStatus("Check JavaScript API. It is not declared, but it is");
- List<String> expected = Arrays.asList("ZHURIK", "MELESHKO");
- AssertTextEquals(resultId, expected.toString());
+ String parentId = getParentId() + "_form:";
+ String pickListId = parentId + PICK_LIST;
- tester.testSubmit();
+ String destListId = parentId + PICK_LIST + "tlTbody";
+ String srcListId = parentId + PICK_LIST + "tbody";
- AssertTextEquals(resultId, ITEMS.toString(), "Model binding is not updated");
+ Assert.assertEquals(getNumberOfChildren(srcListId), 6);
+ Assert.assertEquals(getNumberOfChildren(destListId), 2);
+
+ assertButtonEnabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonEnabled(REMOVE_ALL_BTN);
+
+ writeStatus("Check copy js function");
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[1]");
+ invokeFromComponent(pickListId, "copy", null);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 5);
+ Assert.assertEquals(getNumberOfChildren(destListId), 3);
+
+ writeStatus("Check remove js function");
+ selenium.click("//tbody[@id='" + destListId + "']/tr[1]");
+ invokeFromComponent(pickListId, "remove", null);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 6);
+ Assert.assertEquals(getNumberOfChildren(destListId), 2);
+
+ writeStatus("Check copyAll js function");
+ invokeFromComponent(pickListId, "copyAll", null);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 0);
+ Assert.assertEquals(getNumberOfChildren(destListId), 8);
+ assertButtonDisabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonEnabled(REMOVE_ALL_BTN);
+
+ writeStatus("Check removeAll js function");
+ invokeFromComponent(pickListId, "removeAll", null);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 8);
+ Assert.assertEquals(getNumberOfChildren(destListId), 0);
+ assertButtonEnabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonDisabled(REMOVE_ALL_BTN);
}
@Test
- public void testSubmitWithExternalValidationFailed(Template template ) {
+ public void testSwitchByClickAttribute(Template template) {
+ renderPage(template, INIT_SWITCH_BY_CLICK_TEST);
+
+ writeStatus("Check 'switchByClick' attribute");
+
+ String parentId = getParentId() + "_form:";
+ String destListId = parentId + PICK_LIST + "tlTbody";
+ String srcListId = parentId + PICK_LIST + "tbody";
+
+ assertButtonEnabled(COPY_ALL_BTN);
+ assertButtonDisabled(COPY_BTN);
+ assertButtonDisabled(REMOVE_BTN);
+ assertButtonEnabled(REMOVE_ALL_BTN);
+
+ writeStatus("Try to move an item by click and check state thereafter");
+
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[1]");
+
+ Assert.assertEquals(getNumberOfChildren(srcListId), 5);
+ Assert.assertEquals(getNumberOfChildren(destListId), 3);
+ Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[3]"), "LEONTIEV");
+ }
+
+ @Test
+ public void testKeyboardNavigation(Template template) {
+ renderPage(template, RESET_METHOD);
+
+ writeStatus("Check keyboard navigation");
+
+ String pickListId = getParentId() + "_form:" + PICK_LIST;
+ String focusKeeper = pickListId + "focusKeeper";
+ String destListId = pickListId + "tlTbody";
+ String srcListId = pickListId + "tbody";
+ String copyElemId = pickListId + COPY_BTN;
+ String removeAllElemId = pickListId + REMOVE_ALL_BTN;
+
+ writeStatus("Check Up arrow");
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[6]");
+ selenium.keyDown(focusKeeper, "\\38");//up
+ clickById(copyElemId);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 5);
+ Assert.assertEquals(getNumberOfChildren(destListId), 3);
+ Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[3]"), "KOSTITSYN");
+
+ writeStatus("Check Down arrow");
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[1]");
+ selenium.keyDown(focusKeeper, "\\40");//down
+ clickById(copyElemId);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 4);
+ Assert.assertEquals(getNumberOfChildren(destListId), 4);
+ Assert.assertEquals(selenium.getText("xpath=//tbody[@id='" + destListId + "']/tr[4]"), "KOVAL");
+
+ writeStatus("Check SHIFT + click");
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[1]");
+ selenium.shiftKeyDown();
+ selenium.click("//tbody[@id='" + srcListId + "']/tr[4]");
+ selenium.shiftKeyUp();
+ clickById(copyElemId);
+ Assert.assertEquals(getNumberOfChildren(srcListId), 0);
+ Assert.assertEquals(getNumberOfChildren(destListId), 8);
+
+ clickById(removeAllElemId);
+
+ writeStatus("Check CTRL + A shortcut");
+
+ selenium.controlKeyDown();
+ selenium.keyDown(focusKeeper, "A");
+ selenium.controlKeyUp();
+
+ clickById(copyElemId);
+
+ Assert.assertEquals(getNumberOfChildren(srcListId), 0);
+ Assert.assertEquals(getNumberOfChildren(destListId), 8);
+ }
+
+ @Test
+ public void testValueChangeEventFiredAndModelUpdatedOnSubmit(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
- writeStatus("Test component's form submission with an invalid element in it");
String resultId = tester.getClientId("result");
+ writeStatus("Check ValueChangeListeners invoked on submit and model binding is updated on value changed");
+
List<String> expected = Arrays.asList("ZHURIK", "MELESHKO");
AssertTextEquals(resultId, expected.toString());
- tester.testSubmitWithExternalValidationFailed();
+ tester.testSubmit();
- AssertTextEquals(resultId, expected.toString(), "Model has to be untouched");
+ AssertTextEquals(resultId, ITEMS.toString(), "Model binding is not updated");
}
@Test
15 years, 10 months
JBoss Rich Faces SVN: r12872 - trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:33:55 -0500 (Fri, 06 Mar 2009)
New Revision: 12872
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml
Log:
add russian and german locales
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml 2009-03-06 16:33:07 UTC (rev 12871)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml 2009-03-06 16:33:55 UTC (rev 12872)
@@ -8,6 +8,8 @@
<application>
<locale-config>
<default-locale>en_US</default-locale>
+ <supported-locale>de_DE</supported-locale>
+ <supported-locale>ru_RU</supported-locale>
</locale-config>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
<message-bundle>
15 years, 10 months
JBoss Rich Faces SVN: r12871 - trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:33:07 -0500 (Fri, 06 Mar 2009)
New Revision: 12871
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_ru_RU.properties
Log:
Added: trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_ru_RU.properties
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_ru_RU.properties (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_ru_RU.properties 2009-03-06 16:33:07 UTC (rev 12871)
@@ -0,0 +1 @@
+
15 years, 10 months
JBoss Rich Faces SVN: r12870 - trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:32:31 -0500 (Fri, 06 Mar 2009)
New Revision: 12870
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
Log:
fix Internatialization
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2009-03-06 16:31:59 UTC (rev 12869)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/CalendarTestBean.java 2009-03-06 16:32:31 UTC (rev 12870)
@@ -215,7 +215,7 @@
}
public String testLocale () {
- locale = new Locale("ru");
+ locale = new Locale("ru","RU","");
return null;
}
15 years, 10 months
JBoss Rich Faces SVN: r12869 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:31:59 -0500 (Fri, 06 Mar 2009)
New Revision: 12869
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
fix Internatialization
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-03-06 16:30:42 UTC (rev 12868)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-03-06 16:31:59 UTC (rev 12869)
@@ -96,6 +96,7 @@
WEEK_DAYS_RU.add("\u0412\u0441");
}
+
static final DateFormatSymbols symbolsUS = new DateFormatSymbols(Locale.US);
static final DateFormatSymbols symbolsRU = new DateFormatSymbols(new Locale("ru"));
@@ -721,19 +722,15 @@
public void testInternationalization(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
+ setPopup(true);
+ String changeLocaleButtonId = getParentId() + CONTROLS_FORM_ID + "testLocale";
+ clickCommandAndWait(changeLocaleButtonId);
- // Failed due to bug https://jira.jboss.org/jira/browse/RF-5330
- Assert.fail("https://jira.jboss.org/jira/browse/RF-5330");
+ showPopup();
+ showTimeSelectionWindow();
-// setPopup(true);
-// String changeLocaleButtonId = getParentId() + CONTROLS_FORM_ID + "testLocale";
-// clickCommandAndWait(changeLocaleButtonId);
-//
-// showPopup();
-// showTimeSelectionWindow();
-//
-// testInternatialization("_ru");
-// testWeekDays();
+ testInternatialization("_ru");
+ testWeekDays();
}
15 years, 10 months
JBoss Rich Faces SVN: r12868 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:30:42 -0500 (Fri, 06 Mar 2009)
New Revision: 12868
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
Log:
fix checkEmptyAttr methods
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2009-03-06 16:29:44 UTC (rev 12867)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2009-03-06 16:30:42 UTC (rev 12868)
@@ -320,7 +320,7 @@
}
private void checkEmptyAttr(String locator, String errMessage, String okMessage) {
- if ("null".equals(locator)) {
+ if (null == locator) {
writeStatus(okMessage);
} else {
writeStatus(errMessage, true);
15 years, 10 months
JBoss Rich Faces SVN: r12867 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:29:44 -0500 (Fri, 06 Mar 2009)
New Revision: 12867
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
Log:
fill jira issue
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2009-03-06 16:29:09 UTC (rev 12866)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2009-03-06 16:29:44 UTC (rev 12867)
@@ -159,6 +159,7 @@
assertEvents(eventsExpected);
}
+ //FIXME https://jira.jboss.org/jira/browse/RF-4597
@Test
public void testStyleAndClassesStandardHTMLAttributesAreOutputToClient(Template template) {
renderPage(template);
15 years, 10 months
JBoss Rich Faces SVN: r12866 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-03-06 11:29:09 -0500 (Fri, 06 Mar 2009)
New Revision: 12866
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxRegionTest.java
Log:
fill jira issue
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxRegionTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxRegionTest.java 2009-03-06 16:22:29 UTC (rev 12865)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxRegionTest.java 2009-03-06 16:29:09 UTC (rev 12866)
@@ -81,6 +81,7 @@
AssertValueEquals(renderElemId, "11");
}
+ // FIXME https://jira.jboss.org/jira/browse/RF-4883
@Test
public void testAjaxListenerInvokedOnEachAJAXRequest(Template template) {
renderPage(template);
15 years, 10 months