JBoss Rich Faces SVN: r11883 - 2 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 11:35:18 -0500 (Thu, 18 Dec 2008)
New Revision: 11883
Removed:
trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic4.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic5.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic6.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic7.jpg
Log:
RF-4494: Tutorial about developing this sample application
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic4.jpg
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic5.jpg
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic6.jpg
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 2/pic7.jpg
===================================================================
(Binary files differ)
17 years, 7 months
JBoss Rich Faces SVN: r11882 - 2 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 11:34:58 -0500 (Thu, 18 Dec 2008)
New Revision: 11882
Added:
trunk/test-applications/realworld/Upload/amarkhel/Album 2/Audrey_Tautou.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/Juliette_Binoche.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/Penelope_Cruz.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/Rihanna.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 2/Uma_Turman.jpg
Log:
RF-4494: Tutorial about developing this sample application
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Audrey_Tautou.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Audrey_Tautou.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Juliette_Binoche.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Juliette_Binoche.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Penelope_Cruz.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Penelope_Cruz.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Rihanna.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Rihanna.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Uma_Turman.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 2/Uma_Turman.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 7 months
JBoss Rich Faces SVN: r11881 - 1 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 11:33:32 -0500 (Thu, 18 Dec 2008)
New Revision: 11881
Removed:
trunk/test-applications/realworld/Upload/amarkhel/Album 1/pic1.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/pic2.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/pic3.jpg
Log:
RF-4494: Tutorial about developing this sample application
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 1/pic1.jpg
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 1/pic2.jpg
===================================================================
(Binary files differ)
Deleted: trunk/test-applications/realworld/Upload/amarkhel/Album 1/pic3.jpg
===================================================================
(Binary files differ)
17 years, 7 months
JBoss Rich Faces SVN: r11880 - 1 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 11:16:19 -0500 (Thu, 18 Dec 2008)
New Revision: 11880
Added:
trunk/test-applications/realworld/Upload/amarkhel/Album 1/Pagani_Zonda.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/aston_martin.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/ferrari_profile.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/holden-efijy-1809.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/hulme_supercar_side_parked.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/spadaconcept codatronca.jpg
trunk/test-applications/realworld/Upload/amarkhel/Album 1/supercar.jpg
Log:
RF-4494: Tutorial about developing this sample application
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/Pagani_Zonda.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/Pagani_Zonda.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/aston_martin.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/aston_martin.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/ferrari_profile.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/ferrari_profile.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/holden-efijy-1809.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/holden-efijy-1809.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/hulme_supercar_side_parked.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/hulme_supercar_side_parked.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/spadaconcept codatronca.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/spadaconcept codatronca.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/realworld/Upload/amarkhel/Album 1/supercar.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/amarkhel/Album 1/supercar.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 7 months
JBoss Rich Faces SVN: r11879 - trunk/test-applications/realworld/Upload/qqqq.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 10:55:45 -0500 (Thu, 18 Dec 2008)
New Revision: 11879
Added:
trunk/test-applications/realworld/Upload/qqqq/Cars/
Log:
RF-4494: Tutorial about developing this sample application
Copied: trunk/test-applications/realworld/Upload/qqqq/Cars (from rev 11874, trunk/test-applications/realworld/Upload/qqqq/Album 1)
17 years, 7 months
JBoss Rich Faces SVN: r11878 - trunk/test-applications/realworld/Upload/qqqq/avatars.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 10:54:12 -0500 (Thu, 18 Dec 2008)
New Revision: 11878
Removed:
trunk/test-applications/realworld/Upload/qqqq/avatars/avatar.jpg
Log:
RF-4494: Tutorial about developing this sample application
Deleted: trunk/test-applications/realworld/Upload/qqqq/avatars/avatar.jpg
===================================================================
(Binary files differ)
17 years, 7 months
JBoss Rich Faces SVN: r11877 - trunk/test-applications/realworld/Upload/qqqq/avatars.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-12-18 10:53:44 -0500 (Thu, 18 Dec 2008)
New Revision: 11877
Added:
trunk/test-applications/realworld/Upload/qqqq/avatars/pupkind.jpg
Log:
RF-4494: Tutorial about developing this sample application
Added: trunk/test-applications/realworld/Upload/qqqq/avatars/pupkind.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/realworld/Upload/qqqq/avatars/pupkind.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 7 months
JBoss Rich Faces SVN: r11876 - in trunk/test-applications/regressionArea/regressionArea-web/src: test/java/org/richfaces and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-18 10:39:21 -0500 (Thu, 18 Dec 2008)
New Revision: 11876
Added:
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5264.xhtml
trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/testng/rf5264/
trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/testng/rf5264/Test.java
Modified:
trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/regressionArea/regressionArea-web/src/test/resources/testng.xml
Log:
https://jira.jboss.org/jira/browse/RF-5264
Added: trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5264.xhtml
===================================================================
--- trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5264.xhtml (rev 0)
+++ trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5264.xhtml 2008-12-18 15:39:21 UTC (rev 11876)
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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">
+
+<ui:composition template="/layout/layout.xhtml">
+ <ui:define name="style">
+
+ </ui:define>
+ <ui:define name="template">
+ <h:form id="form">
+ <rich:progressBar id="progressBar" mode="client" minValue="100" maxValue="500" value="300">
+ <f:facet name="initial">initial</f:facet>
+ <f:facet name="complete">complete</f:facet>
+ </rich:progressBar>
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file
Modified: trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-18 15:38:04 UTC (rev 11875)
+++ trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-18 15:39:21 UTC (rev 11876)
@@ -3,6 +3,7 @@
import org.ajax4jsf.bean.Configurator;
+import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.javascript.ScriptUtils;
import org.openqa.selenium.server.RemoteControlConfiguration;
import org.openqa.selenium.server.SeleniumServer;
@@ -824,4 +825,19 @@
return runScript("fireMouseEvent('" + id + "','" + eventName + "', "
+ x + "," + y + ","+ctrl+");");
}
+
+ /**
+ * Calls component JS API
+ *
+ * @param id - Client id of the component to call operation on
+ * @param function - JS function representing operation that should be called
+ * @return - Result of execution
+ */
+ public String callComponentOperation(String id, JSFunction function) {
+ StringBuffer command = new StringBuffer();
+ new JSFunction("document.getElementById", id).appendScript(command);
+ command.append(".component.");
+ function.appendScript(command);
+ return runScript(command.toString());
+ }
}
Added: trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/testng/rf5264/Test.java
===================================================================
--- trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/testng/rf5264/Test.java (rev 0)
+++ trunk/test-applications/regressionArea/regressionArea-web/src/test/java/org/richfaces/testng/rf5264/Test.java 2008-12-18 15:39:21 UTC (rev 11876)
@@ -0,0 +1,74 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.testng.rf5264;
+
+import org.ajax4jsf.javascript.JSFunction;
+import org.richfaces.SeleniumTestBase;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.0
+ */
+public class Test extends SeleniumTestBase {
+
+ private static final String PROGRESS_BAR_ID = "form:progressBar";
+ private static final String PROGRESS_BAR_TEST_ELEMENT_ID = PROGRESS_BAR_ID + ":upload";
+
+ private static final String PROGRESS_BAR_INITIAL_ELEMENT_ID = PROGRESS_BAR_ID + ":initialState";
+ private static final String PROGRESS_BAR_COMPLETE_ELEMENT_ID = PROGRESS_BAR_ID + ":completeState";
+
+ @org.testng.annotations.Test
+ public void testBeyondMinimum() throws Exception {
+ renderPage();
+
+ assertStyleAttribute(PROGRESS_BAR_TEST_ELEMENT_ID, "width: 50%;");
+ AssertNotVisible(PROGRESS_BAR_INITIAL_ELEMENT_ID);
+ AssertNotVisible(PROGRESS_BAR_COMPLETE_ELEMENT_ID);
+
+ callComponentOperation(PROGRESS_BAR_ID, new JSFunction("setValue", 0));
+ AssertVisible(PROGRESS_BAR_INITIAL_ELEMENT_ID);
+ AssertNotVisible(PROGRESS_BAR_COMPLETE_ELEMENT_ID);
+ AssertNotVisible(PROGRESS_BAR_TEST_ELEMENT_ID);
+ }
+
+ @org.testng.annotations.Test
+ public void testAboveMaximum() throws Exception {
+ renderPage();
+
+ assertStyleAttribute(PROGRESS_BAR_TEST_ELEMENT_ID, "width: 50%;");
+ AssertNotVisible(PROGRESS_BAR_INITIAL_ELEMENT_ID);
+ AssertNotVisible(PROGRESS_BAR_COMPLETE_ELEMENT_ID);
+
+ callComponentOperation(PROGRESS_BAR_ID, new JSFunction("setValue", 1000));
+ AssertVisible(PROGRESS_BAR_COMPLETE_ELEMENT_ID);
+ AssertNotVisible(PROGRESS_BAR_INITIAL_ELEMENT_ID);
+ AssertNotVisible(PROGRESS_BAR_TEST_ELEMENT_ID);
+ }
+
+ @Override
+ public String getTestUrl() {
+ return "pages/rf5264.xhtml";
+ }
+
+
+}
Modified: trunk/test-applications/regressionArea/regressionArea-web/src/test/resources/testng.xml
===================================================================
--- trunk/test-applications/regressionArea/regressionArea-web/src/test/resources/testng.xml 2008-12-18 15:38:04 UTC (rev 11875)
+++ trunk/test-applications/regressionArea/regressionArea-web/src/test/resources/testng.xml 2008-12-18 15:39:21 UTC (rev 11876)
@@ -9,6 +9,7 @@
<package name="org.richfaces.testng" />
<package name="org.richfaces.testng.rf4507" />
<package name="org.richfaces.testng.rf4709" />
+ <package name="org.richfaces.testng.rf5264" />
</packages>
</test-->
<test name="FireFoxFunctionalTestsDANe">
@@ -20,6 +21,7 @@
<package name="org.richfaces.testng" />
<package name="org.richfaces.testng.rf4507" />
<package name="org.richfaces.testng.rf4709" />
+ <package name="org.richfaces.testng.rf5264" />
</packages>
</test>
</suite>
17 years, 7 months
JBoss Rich Faces SVN: r11875 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/calendar and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-12-18 10:38:04 -0500 (Thu, 18 Dec 2008)
New Revision: 11875
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/testEventsAttributes.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout/layout.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
RF-5236
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout/layout.xhtml
===================================================================
(Binary files differ)
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/testEventsAttributes.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/testEventsAttributes.xhtml (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/calendar/testEventsAttributes.xhtml 2008-12-18 15:38:04 UTC (rev 11875)
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition template="#{templateBean.template}">
+ <ui:define name="component">
+ <h:form id="_form">
+ <rich:calendar
+ id="calendar"
+ popup="true"
+ showInput="true"
+ enableManualInput="true"
+ oncollapse="EventQueue.fire('oncollapse')"
+ oncurrentdateselect="EventQueue.fire('oncurrentdateselect')"
+ ondatemouseout="EventQueue.fire('ondatemouseout')"
+ ondatemouseover="EventQueue.fire('ondatemouseover')"
+ ondateselect="EventQueue.fire('ondateselect')"
+ onexpand="EventQueue.fire('onexpand')"
+ oninputclick="EventQueue.fire('oninputclick')"
+ oninputchange="EventQueue.fire('oninputchange')"
+ oninputkeydown="EventQueue.fire('oninputkeydown')"
+ oninputkeypress="EventQueue.fire('oninputkeypress')"
+ oninputkeyup="EventQueue.fire('oninputkeyup')">
+ </rich:calendar>
+
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-18 14:56:23 UTC (rev 11874)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-18 15:38:04 UTC (rev 11875)
@@ -1234,6 +1234,13 @@
eventsExpected.clear();
}
+ public void assertEvent(String eventExpected) {
+ String message = runScript("EventQueue.assertEvent('"+eventExpected+"')");
+ if (null != message && message.length() > 0) {
+ Assert.fail(message);
+ }
+ }
+
public Object assertEvents(String id, List<SeleniumEvent> eventsExpected) {
for (SeleniumEvent ev : eventsExpected) {
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 2008-12-18 14:56:23 UTC (rev 11874)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2008-12-18 15:38:04 UTC (rev 11875)
@@ -66,6 +66,8 @@
static final String LAYOUT_TESTS_URL = "pages/calendar/layoutTests.xhtml";
static final String IMMEDIATE_TEST_URL = "pages/calendar/testImmediate.xhtml";
+
+ static final String EVENTS_TEST_URL = "pages/calendar/testEventsAttributes.xhtml";
static final String RESET_TIME_ON_DATE_SELECTION_TEST_URL = "pages/calendar/resetTimeOnDateSelectTest.xhtml";
@@ -417,6 +419,46 @@
}
}
+ @Test
+ public void testEventsAttributes(Template template) {
+ renderPage(EVENTS_TEST_URL, template, RESET_METHOD);
+ initIds(getParentId());
+ List<String> events = new ArrayList<String>();
+
+ showPopup();
+
+
+ events.add("onexpand");
+ events.add("ondateselect");
+ events.add("oncollapse");
+
+ changeDate();
+ assertEvents(events);
+
+ events.add("ondatemouseover");
+ events.add("ondatemouseout");
+
+ String weekNumId = calendarId + "WeekNum2";
+ selenium.mouseOver("//tr[@id='" + weekNumId + "']/td[starts-with(@class, '" + availableDayCellClass + "')]");
+ selenium.mouseOut("//tr[@id='" + weekNumId + "']/td[starts-with(@class, '" + availableDayCellClass + "')]");
+ assertEvents(events);
+
+ events.add("oncurrentdateselect");
+
+ changeCurrentDate(false);
+ assertEvents(events);
+
+ type(inputDateId, "a");
+ assertEvent("oninputchange");
+ assertEvent("oninputkeydown");
+ assertEvent("oninputkeypress");
+ assertEvent("oninputkeyup");
+
+ clickById(inputDateId);
+ assertEvent("oninputclick");
+
+ }
+
@Test // Test is the same as for internationalization
public void testLocaleAttribute(Template template) {
renderPage(template, RESET_METHOD);
17 years, 7 months
JBoss Rich Faces SVN: r11874 - trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-12-18 09:56:23 -0500 (Thu, 18 Dec 2008)
New Revision: 11874
Modified:
trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
Log:
https://jira.jboss.org/jira/browse/RF-5264
Modified: trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
===================================================================
--- trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-12-18 14:55:56 UTC (rev 11873)
+++ trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-12-18 14:56:23 UTC (rev 11874)
@@ -174,8 +174,11 @@
var value = parseFloat(v);
if (value > min && value < max) {
return (100*(value - min))/(max - min);
+ } else if (value <= min) {
+ return 0;
+ } else if (value >= max) {
+ return 100;
}
- return value;
},
setValue: function (ev, val) {
val = this.getParameter(ev, val, "value");
17 years, 7 months