You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/03/18 20:21:45 UTC
svn commit: r1083025 -
/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/in.xhtml
Author: lofwyr
Date: Fri Mar 18 19:21:45 2011
New Revision: 1083025
URL: http://svn.apache.org/viewvc?rev=1083025&view=rev
Log:
fix and extend unit test (also for JSP)
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/in.xhtml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/in.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/in.xhtml?rev=1083025&r1=1083024&r2=1083025&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/in.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tx/in/in.xhtml Fri Mar 18 19:21:45 2011
@@ -22,20 +22,28 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
- <tc:page>
+ <tc:page id="page">
<f:facet name="layout">
<tc:gridLayout rows="auto;auto;auto;auto"/>
</f:facet>
- <tc:gridLayoutConstraint width="600px" height="60px"/>
+ <tc:gridLayoutConstraint width="600px" height="600px"/>
- <tx:in label="Label 1" value="Some Value 1"/>
- <tx:in label="Label 2" value="Some Value 2"/>
- <tx:in label="Label 3" value="Some Value 3"/>
- <tx:in label="Label 4" value="Some Value 4"/>
+ <tx:in label="Label 1" value="Some Value 1" fieldId="in1" id="panel1"/>
+ <tx:in label="Label 2" value="Some Value 2" fieldId="in2" id="panel2"/>
+ <tx:in label="Label 3" value="Some Value 3" fieldId="in3" id="panel3"/>
+ <tx:in label="Label 4" value="Some Value 4" fieldId="in4" id="panel4" />
<tc:script file="script/test-utils.js"/>
-
- <tc:script onload="checkLayout(jQuery('#j_id1\\:j_id17'), 0, 75, 120, 20);"/>
+
+ <tc:script onload="checkLayout('page:in1', 125, 0, 475, 20);"/>
+ <tc:script onload="checkLayout('page:in2', 125, 25, 475, 20);"/>
+ <tc:script onload="checkLayout('page:in3', 125, 50, 475, 20);"/>
+ <tc:script onload="checkLayout('page:in4', 125, 75, 475, 20);"/>
+
+ <tc:script onload="checkLayout('page:panel1', 0, 0, 600, 20);"/>
+ <tc:script onload="checkLayout('page:panel2', 0, 25, 600, 20);"/>
+ <tc:script onload="checkLayout('page:panel3', 0, 50, 600, 20);"/>
+ <tc:script onload="checkLayout('page:panel4', 0, 75, 600, 20);"/>
</tc:page>
</f:view>