You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pa...@apache.org on 2006/12/05 05:36:41 UTC
svn commit: r482481 - in /myfaces/tomahawk/trunk/examples/simple/src:
main/webapp/testSuite/hOutputLink.jsp test/selenium/hOutputLink.html
Author: paulsp
Date: Mon Dec 4 20:36:38 2006
New Revision: 482481
URL: http://svn.apache.org/viewvc?view=rev&rev=482481
Log:
Add parameters to h:outputLink test.
Modified:
myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hOutputLink.jsp
myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hOutputLink.html
Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hOutputLink.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hOutputLink.jsp?view=diff&rev=482481&r1=482480&r2=482481
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hOutputLink.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hOutputLink.jsp Mon Dec 4 20:36:38 2006
@@ -42,11 +42,13 @@
to be valid.
-->
- <h:outputLink id="hOutputLink" value="http://myfaces.apache.org"
+ <h:outputLink id="hOutputLink" value="http://myfaces.apache.org/index.html"
accesskey="1" onblur="Alert('Onblur');"
onfocus="Alert('onFocus');" type="contentType"
target="targetWindow" coords="1,2" hreflang="en"
rev="http://foo.bar.com" shape="square">
+ <f:param name="param1" value="value1"/>
+ <f:param name="param2" value="value2"/>
<h:outputText id="hOutputText" value="Link" />
</h:outputLink>
<!-- End test -->
Modified: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hOutputLink.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hOutputLink.html?view=diff&rev=482481&r1=482480&r2=482481
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hOutputLink.html (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hOutputLink.html Mon Dec 4 20:36:38 2006
@@ -45,14 +45,20 @@
<td>//a[@id='hOutputLink']@type</td>
<td>contentType</td>
</tr>
-<!--
+<!-- Using glob: and ? instead or & for second parameter due to IE -->
+<tr>
+ <td>assertAttribute</td>
+ <td>//a[@id='hOutputLink']@href</td>
+ <td>glob:http://myfaces.apache.org/index.html?param1=value1?param2=value2</td>
+</tr>
+<!-- Does not work with IE
<tr>
<td>assertAttribute</td>
<td>//a[@id='hOutputLink']@onblur</td>
<td>glob:*Alert('onBlur');*</td>
</tr>
-->
-<!--
+<!-- Does not work with IE
<tr>
<td>assertAttribute</td>
<td>//a[@id='hOutputLink']@onfocus</td>