You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by cr...@apache.org on 2006/10/10 22:08:34 UTC

svn commit: r462540 - in /beehive/trunk/netui/test/webapps/jsf/testRecorder: tests-jsf-ri/OnRestore.xml tests-myfaces/OnRestore.xml

Author: crogers
Date: Tue Oct 10 13:08:34 2006
New Revision: 462540

URL: http://svn.apache.org/viewvc?view=rev&rev=462540
Log:
Update tests for the fix to BEEHIVE-1115. Note that the action with a forward of Jpf.NavigateTo.currentPage without setting any actionOutputs on the forward should have the actionOutputs from the saved current page info, in this case it was via the begin action and the forward to page1.faces. Before the fix to BEEHIVE-1115, the page processes was re-saving the previous page info because the saved attribute was not set on the request and the uri for the corresponding jsp was different from the path of the forward to the *.faces. If the action doesn't set/reset the actionOutputs, then the return to current page should have the original actionOutputs from the saved page info.

Tests: NetUI jsfWeb - both myfaces and RI (WinXP pass)


Modified:
    beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/OnRestore.xml
    beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/OnRestore.xml

Modified: beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/OnRestore.xml
URL: http://svn.apache.org/viewvc/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/OnRestore.xml?view=diff&rev=462540&r1=462539&r2=462540
==============================================================================
--- beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/OnRestore.xml (original)
+++ beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-jsf-ri/OnRestore.xml Tue Oct 10 13:08:34 2006
@@ -686,7 +686,7 @@
 <td>Messages:</td>
 </tr>
 <tr>
-<td>	Got action output from goPrev(). </td>
+<td>	Got action output from begin(). </td>
 </tr>
 <tr>
 <td><a id="_id0:goCurrentNoNewMessage" href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:goCurrentNoNewMessage'; document.forms['_id0'].submit(); return false;">stay on the current page, via navigateTo=Jpf.NavigateTo.currentPage, with no new page inputs</a></td>

Modified: beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/OnRestore.xml
URL: http://svn.apache.org/viewvc/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/OnRestore.xml?view=diff&rev=462540&r1=462539&r2=462540
==============================================================================
--- beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/OnRestore.xml (original)
+++ beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/OnRestore.xml Tue Oct 10 13:08:34 2006
@@ -619,7 +619,7 @@
         <form id="_id0" name="_id0" method="post" action="/jsfWeb/onRestore/page1.faces" enctype="application/x-www-form-urlencoded">
             <table><tbody><tr><td><span style="font-style: italic">This test ensures that onRestore() is called before restoring a page through Jpf.NavigateTo.{currentPage,previousPage}, and that page inputs are updated and available during onRestore().</span></td></tr>
 <tr><td>Messages:</td></tr>
-<tr><td><ul><li>Got action output from goPrev().</li></ul></td></tr>
+<tr><td><ul><li>Got action output from begin().</li></ul></td></tr>
 <tr><td><a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:goCurrentNoNewMessage';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:goCurrentNoNewMessage">stay on the current page, via navigateTo=Jpf.NavigateTo.currentPage, with no new page inputs</a></td></tr>
 <tr><td><a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:goCurrent';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:goCurrent">stay on the current page, via navigateTo=Jpf.NavigateTo.currentPage</a></td></tr>
 <tr><td><a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:go2';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:go2">go to page 2</a></td></tr>