"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tapestry-core/src/test/groovy/org/apache/tapestry5/integration/appfolder/AppFolderTests.groovy" between
apache-tapestry-5.6.2-sources.zip and apache-tapestry-5.6.3-sources.zip

About: Apache Tapestry is a framework for creating dynamic, robust, highly scalable web applications in Java. Source code.

AppFolderTests.groovy  (apache-tapestry-5.6.2-sources):AppFolderTests.groovy  (apache-tapestry-5.6.3-sources)
skipping to change at line 60 skipping to change at line 60
@Test @Test
void asset_access() void asset_access()
{ {
openLinks "t5app/" openLinks "t5app/"
// there's only one image on page // there's only one image on page
String assetURL = getAttribute("//img/@src") String assetURL = getAttribute("//img/@src")
// Selenium now (sometimes?) adds unwanted port & host // Selenium now (sometimes?) adds unwanted port & host
if (assetURL == null) {
println("Asset URL is null. HTML: " + getHtmlSource())
}
if (assetURL.startsWith("http")) { if (assetURL.startsWith("http")) {
assetURL = new URL(assetURL).getPath() assetURL = new URL(assetURL).getPath()
} }
assert assetURL.startsWith("/t5app/assets/") assert assetURL.startsWith("/t5app/assets/")
assertDownloadedAsset assetURL, "src/test/appfolder/images/t5-logo.png" assertDownloadedAsset assetURL, "src/test/appfolder/images/t5-logo.png"
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)