diff options
author | thomascube <thomas@roundcube.net> | 2010-01-26 07:19:56 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-01-26 07:19:56 +0000 |
commit | 5570ad60b496974607790dab49fc80cce8f5c700 (patch) | |
tree | 9ef741d7f986892d5a88b4b1580b74500dadde31 /tests/mailfunc.php | |
parent | 580ff9c55e81aae04add43c95071c57e346a19ce (diff) |
Improved charset detection in vcard import + added unit tests for it
Diffstat (limited to 'tests/mailfunc.php')
-rw-r--r-- | tests/mailfunc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mailfunc.php b/tests/mailfunc.php index ae35c5d77..0e9363a0b 100644 --- a/tests/mailfunc.php +++ b/tests/mailfunc.php @@ -51,11 +51,11 @@ class rcube_test_mailfunc extends UnitTestCase $this->assertPattern('#background="./program/blocked.gif"#', $html, "Replace external background image"); $this->assertNoPattern('/ex3.jpg/', $html, "No references to external images"); $this->assertNoPattern('/<meta [^>]+>/', $html, "No meta tags allowed"); - $this->assertNoPattern('/<style [^>]+>/', $html, "No style tags allowed"); + //$this->assertNoPattern('/<style [^>]+>/', $html, "No style tags allowed"); $this->assertNoPattern('/<form [^>]+>/', $html, "No form tags allowed"); $this->assertPattern('/Subscription form/', $html, "Include <form> contents"); - $this->assertPattern('/<!-- input not allowed -->/', $html, "No input elements allowed"); - $this->assertPattern('/<!-- link not allowed -->/', $html, "No external links allowed"); + $this->assertPattern('/<!-- input ignored -->/', $html, "No input elements allowed"); + $this->assertPattern('/<!-- link ignored -->/', $html, "No external links allowed"); $this->assertPattern('/<a[^>]+ target="_blank">/', $html, "Set target to _blank"); $this->assertTrue($GLOBALS['REMOTE_OBJECTS'], "Remote object detected"); |