summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-05 10:28:24 +0000
committeralecpl <alec@alec.pl>2012-01-05 10:28:24 +0000
commitd69f8f06118afa8173975d7ea8a84e3c0c739ce8 (patch)
treeaa87f9b3661653acb514d64be8b4e4fd6b193c6a /tests
parenta33118fd0f0fa3765507b50bcb45cf44da1190bb (diff)
- Backported r5713
Diffstat (limited to 'tests')
-rw-r--r--tests/mailfunc.php4
-rw-r--r--tests/src/htmlbase.txt2
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/mailfunc.php b/tests/mailfunc.php
index 1b1bbdf38..2e55d331d 100644
--- a/tests/mailfunc.php
+++ b/tests/mailfunc.php
@@ -166,5 +166,9 @@ class rcube_test_mailfunc extends UnitTestCase
$this->assertPattern('|src="http://alec\.pl/dir/img1\.gif"|', $html, "URI base resolving [1]");
$this->assertPattern('|src="http://alec\.pl/dir/img2\.gif"|', $html, "URI base resolving [2]");
$this->assertPattern('|src="http://alec\.pl/img3\.gif"|', $html, "URI base resolving [3]");
+
+ // base resolving exceptions
+ $this->assertPattern('|src="cid:theCID"|', $html, "URI base resolving exception [1]");
+ $this->assertPattern('|src="http://other\.domain\.tld/img3\.gif"|', $html, "URI base resolving exception [2]");
}
}
diff --git a/tests/src/htmlbase.txt b/tests/src/htmlbase.txt
index d1ddd5406..eb590748b 100644
--- a/tests/src/htmlbase.txt
+++ b/tests/src/htmlbase.txt
@@ -6,5 +6,7 @@
<img src="img1.gif" />
<img src="./img2.gif" />
<img src="../img3.gif" />
+<img src="cid:theCID" />
+<img src="http://other.domain.tld/img3.gif" />
</body>
</html>