Author: lfryc(a)redhat.com
Date: 2010-09-18 04:42:31 -0400 (Sat, 18 Sep 2010)
New Revision: 19253
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/RichJQueryAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/TestSimple.java
Log:
use string constants instead of item from JQueryTiming enumeration to avoid additional
dependencies
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/RichJQueryAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/RichJQueryAttributes.java 2010-09-18
08:01:56 UTC (rev 19252)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/RichJQueryAttributes.java 2010-09-18
08:42:31 UTC (rev 19253)
@@ -23,7 +23,6 @@
import org.jboss.test.selenium.encapsulated.JavaScript;
import org.jboss.test.selenium.locator.JQueryLocator;
-import org.richfaces.component.JQueryTiming;
import org.richfaces.tests.metamer.ftest.AbstractComponentAttributes;
/**
@@ -52,8 +51,7 @@
setProperty("selector", rawLocator);
}
- public void setTiming(JQueryTiming timing) {
- String timingString = timing == null ? null : timing.toString();
- setProperty("timing", timingString);
+ public void setTiming(String timing) {
+ setProperty("timing", timing);
}
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/TestSimple.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/TestSimple.java 2010-09-18
08:01:56 UTC (rev 19252)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richJQuery/TestSimple.java 2010-09-18
08:42:31 UTC (rev 19253)
@@ -30,7 +30,6 @@
import org.jboss.test.selenium.css.CssProperty;
import org.jboss.test.selenium.locator.JQueryLocator;
-import org.richfaces.component.JQueryTiming;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
import org.testng.annotations.Test;
@@ -113,14 +112,14 @@
attributes.setEvent("click");
attributes.setQuery(js("$(this).css('color',
'red')"));
attributes.setSelector(button);
- attributes.setTiming(JQueryTiming.immediate);
+ attributes.setTiming("immediate");
}
private void setupDomReadyTypeAttributes() {
attributes.setEvent(null);
attributes.setQuery(js("css('color', 'red')"));
attributes.setSelector(button);
- attributes.setTiming(JQueryTiming.domready);
+ attributes.setTiming("domready");
}
}
\ No newline at end of file
Show replies by date