Revision: 2477
Author: janne.t.harkonen
Date: Thu Feb 18 05:37:46 2010
Log: Fixed tests to check relative paths in source hrefs.
This was changed already earlier but tests have not been updated.
http://code.google.com/p/robotframework/source/detail?r=2477
Modified:
/trunk/atest/robot/output/suite_source_in_log.txt
=======================================
--- /trunk/atest/robot/output/suite_source_in_log.txt Thu Feb 18 05:37:38
2010
+++ /trunk/atest/robot/output/suite_source_in_log.txt Thu Feb 18 05:37:46
2010
@@ -3,7 +3,8 @@
Resource ../../resources/resource.html
*** Variables ***
-${BASE} ${CURDIR}/../../testdata/misc
+${RELATIVE} ../../testdata/misc
+${BASE} ${CURDIR}${/}${RELATIVE}
${LOGNAME} suite_source_log.html
*** Test Cases ***
@@ -29,8 +30,9 @@
*** Keywords ***
Verify Suite Source Link
[Arguments] ${path}
- ${path} = Join Path ${BASE} ${path}
- ${logfile} = Get File ${OUTDIR}/${LOGNAME}
- Should Contain ${logfile} <a href="file://${path}">${path}</a>
+ ${relpath}= Set Variable ../${RELATIVE}${/}${path}
+ ${abspath}= Join Path ${BASE} ${path}
+ ${logfile}= Get File ${OUTDIR}/${LOGNAME}
+ Should Contain ${logfile} <a href="${relpath}">${abspath}</a>
[Return] ${logfile}