Author: ivaynberg Date: Wed Feb 24 19:24:44 2010 New Revision: 915937 URL: http://svn.apache.org/viewvc?rev=915937&view=rev Log: fixed unit test. WICKET-2758
Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_2.java wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_11.html wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_2.html wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_3.html Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_2.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_2.java?rev=915937&r1=915936&r2=915937&view=diff ============================================================================== --- wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_2.java (original) +++ wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_2.java Wed Feb 24 19:24:44 2010 @@ -19,6 +19,7 @@ import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.image.Image; +import org.apache.wicket.ng.resource.PackageResourceReference; /** @@ -39,6 +40,7 @@ add(border); border.addToBorderBody(new TextField<String>("text")); - border.addToBorderBody(new Image("img")); + border.addToBorderBody(new Image("img", new PackageResourceReference(BoxBorder.class, + "test.png"))); } } Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_11.html URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_11.html?rev=915937&r1=915936&r2=915937&view=diff ============================================================================== --- wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_11.html (original) +++ wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_11.html Wed Feb 24 19:24:44 2010 @@ -15,7 +15,7 @@ <html> <body> <span wicket:id="border"><wicket:border> - <h3 class="collapse" wicket:id="title" onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='?wicket:interface=:0:border:title::ILinkListener::'; } ;return false"> + <h3 class="collapse" wicket:id="title" onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../page?0-1.ILinkListener-border-title'; } ;return false"> <span class="label" wicket:id="titleLabel">model</span> <a class="foldicon"> </a> </h3> Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_2.html URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_2.html?rev=915937&r1=915936&r2=915937&view=diff ============================================================================== --- wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_2.html (original) +++ wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_2.html Wed Feb 24 19:24:44 2010 @@ -10,7 +10,7 @@ <td width = "100%"> <wicket:body> this is inside box: <input wicket:id="text" type="text" value="" name="box:box_body:text"/><br/> - <img wicket:id="img" src="resources/org.apache.wicket.markup.html.border.BoxBorder/test.png"/> + <img wicket:id="img" src="../resource/org.apache.wicket.markup.html.border.BoxBorder/test.png"/> </wicket:body> </td> </tr> Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_3.html URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_3.html?rev=915937&r1=915936&r2=915937&view=diff ============================================================================== --- wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_3.html (original) +++ wicket/trunk/wicket/src/test/java/org/apache/wicket/markup/html/border/BoxBorderTestPage_ExpectedResult_3.html Wed Feb 24 19:24:44 2010 @@ -2,7 +2,7 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <body> <span wicket:id="border"><wicket:border> - <form wicket:id="myForm" id="myForm1" method="post" action="?wicket:interface=:0:border:myForm::IFormSubmitListener::"><div style="display:none"><input type="hidden" name="myForm1_hf_0" id="myForm1_hf_0" /></div> + <form wicket:id="myForm" id="myForm1" method="post" action="../page?0-1.IFormSubmitListener-border-myForm"><div style="display:none"><input type="hidden" name="myForm1_hf_0" id="myForm1_hf_0" /></div> <wicket:body> <input type="text" wicket:id="name" value="" name="border_body:name"/> </wicket:body>