From ff6bcfe6265b405ed076edab1fb9a1fcce7c4bc9 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 4 Mar 2009 10:02:55 +0000 Subject: Add tests for external stylesheet handling git-svn-id: https://svn.roundcube.net/trunk@2328 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/tests/mailfunc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roundcubemail/tests/mailfunc.php') diff --git a/roundcubemail/tests/mailfunc.php b/roundcubemail/tests/mailfunc.php index 8fd2cd3d5..ae35c5d77 100644 --- a/roundcubemail/tests/mailfunc.php +++ b/roundcubemail/tests/mailfunc.php @@ -55,15 +55,19 @@ class rcube_test_mailfunc extends UnitTestCase $this->assertNoPattern('/
]+>/', $html, "No form tags allowed"); $this->assertPattern('/Subscription form/', $html, "Include contents"); $this->assertPattern('//', $html, "No input elements allowed"); + $this->assertPattern('//', $html, "No external links allowed"); $this->assertPattern('/]+ target="_blank">/', $html, "Set target to _blank"); $this->assertTrue($GLOBALS['REMOTE_OBJECTS'], "Remote object detected"); // render HTML in safe mode - $html2 = rcmail_print_body($part, array('safe' => true)); + $html2 = rcmail_html4inline(rcmail_print_body($part, array('safe' => true)), 'foo'); $this->assertPattern('/