This test ensures we can download the target of links.

!define HTML { {{{
<html>
<body>
<a href="/FitNesseMock/mytest.txt">my test
<img id="smile" src="/FitNesseMock/smiley.gif" alt="Smiley face"></a>
<img src="/FitNesseMock/sad.gif" alt="Sad face">
</body>
</html>}}} }

|script      |mock xml server setup                  |
|add response|${HTML}                                |
|add response|Hallo|for|GET: /FitNesseMock/mytest.txt|
|add response|Smile|for|GET: /FitNesseMock/smiley.gif|
|add response|Sad  |for|GET: /FitNesseMock/sad.gif   |
|$url=       |get mock server url                    |



|script |browser test        |
|open   |$url                |
|$file= |download|my test    |
|$file2=|download|id=smile   |
|$file3=|download|Smiley face|
|$file4=|download|Sad face   |
|$file5=|download|Sad        |

|script|file fixture        |
|check |text in|$file |Hallo|
|check |text in|$file2|Smile|
|check |text in|$file3|Hallo|
|check |text in|$file4|Sad  |
|check |text in|$file5|Sad  |

|script|mock xml server setup|
|stop                        |


