From ddb9a03a70fb58cc0f1779d29cecaca6c1927f5a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 15 Aug 2008 07:49:42 +0000 Subject: - Patch #260484 by catch, boombatower et al: rollback of valid tests, letting ourselves believe that there are no bugs in core. ;) --- modules/filter/filter.test | 116 --------------------------------------------- 1 file changed, 116 deletions(-) diff --git a/modules/filter/filter.test b/modules/filter/filter.test index e215fd956..e35b91aa1 100644 --- a/modules/filter/filter.test +++ b/modules/filter/filter.test @@ -205,122 +205,6 @@ class FilterTestCase extends DrupalWebTestCase { $this->drupalLogin($admin_user); } - /** - * Test the URL filter - */ - function testUrlFilter() { - $url_filter = 2; - - $format = $this->createFormat($url_filter); - -$body=<<using www.test4.com the code tag. - -
-Test inside blockquote tag www.test5.com. email with person@test6.com. and url http://www.test7.com. And also using www.test8.com the code tag and also inside www.test9.com em tags bla bla. -
- -One more simple code tag test? http://www.test10.com abc - -Test the really simple cases next: - -http://www.test11.com -www.test12.com -person@test13.com -www.test14.com - -What about tags that don't exist like x say www.test15.com? And what about tag beginning www.test16.com with p? - -Test <br/>: This is a www.test17.com. test with some http://www.test18.com various tags within the paragraph. *
Also it is important www.test19.com to *
test multiple different url's and wwwstrings http://www.test20.com urls in same paragraph. *
I mean it www.test21.com many of them person@test22.com after each http://www.test23.com other *img* abc. This is just a www.test24.com paragraph with some http://www.test25.com urls thrown in. This is just a www.test26.com paragraph person@test27.com with some http://www.test28.com urls thrown in. - - - -Again some simple tests inside various tags: - -http://www.test30.com -http://www.test31.com -http://www.test32.com - -And also test ftp URL ftp://ftp.test33.com. - -The old URL filter has problems with this kind of link with www address as part of text in title. www.test43.com - -
-
www.test44.com
-
http://www.test45.com
-
person@test46.com
-
check www.test47.com
-
this with some text around: http://www.test48.com not so easy person@test49.com now?
-
- - - -hello.... there! -END; - - - - $edit = array(); - $edit['title'] = $this->randomName(); - $edit['body'] = $body; - $edit['format'] = $format->format; - $edit['type'] = 'page'; - $page = $this->drupalCreateNode($edit); - - $this->drupalGet('node/' . $page->nid); - $this->assertRaw('href="http://www.test1.com"', t('Parse simple www-string but not the end-of-sentence period.')); - $this->assertRaw('href="mailto:person@test2.com"', t('Parse simple email string but not the end-of-sentence period.')); - $this->assertRaw('href="http://www.test3.com"', t('Parse simple HTTP URL but not the end-of-sentence period.')); - $this->assertNoRaw('href="http://www.test4.com"', t('Do not parse simple HTTP URL inside code tags.')); - $this->assertRaw('href="http://www.test5.com"', t('Parse www-string inside blockquote tag.')); - $this->assertRaw('href="mailto:person@test6.com"', t('Parse email string inside blockquote tag.')); - $this->assertRaw('href="http://www.test7.com"', t('Parse HTTP URL inside blockquote tag')); - $this->assertNoRaw('href="http://www.test8.com"', t('Do not parse simple HTTP URL inside code tags.')); - $this->assertNoRaw('href="http://www.test9.com"', t('Do not parse simple HTTP URL inside em nested inside code tags.')); - $this->assertNoRaw('href="http://www.test10.com"', t('Do not parse simple HTTP URL inside code tags.')); - $this->assertRaw('href="http://www.test11.com"', t('Parse simple HTTP URL.')); - $this->assertRaw('href="http://www.test12.com"', t('Parse simple www-string.')); - $this->assertRaw('href="mailto:person@test13.com"', t('Parse simple email string.')); - $this->assertNoRaw('href="http://www.test14.com"', t('Do not parse simple HTTP URL inside code tags.')); - $this->assertRaw('href="http://www.test15.com"', t('Parse www-string inside tag not part of HTML spec ( ).')); - $this->assertRaw('href="http://www.test16.com"', t('Parse www-string inside tag not part of HTML spec but beginning with p ( ).')); - $this->assertRaw('href="http://www.test17.com"', t('Parse multiple www-strings inside same paragraph.')); - $this->assertRaw('href="http://www.test18.com"', t('Parse multiple www-strings inside same paragraph.')); - $this->assertRaw('href="http://www.test19.com"', t('Parse multiple www-strings inside same paragraph.')); - $this->assertRaw('href="http://www.test20.com"', t('Parse multiple www-strings inside same paragraph limited with
.')); - $this->assertRaw('href="http://www.test21.com"', t('Parse multiple www-strings inside same paragraph limited with
.')); - $this->assertRaw('href="mailto:person@test22.com"', t('Parse email string with multiple www-strings inside same paragraph limited with
.')); - $this->assertRaw('href="http://www.test23.com"', t('Parse multiple www-strings inside same paragraph limited with
.')); - $this->assertRaw('href="http://www.test24.com"', t('Parse multiple www-strings inside same paragraph limited with
and .')); - $this->assertRaw('href="http://www.test25.com"', t('Parse multiple www-strings inside same paragraph limited with
and .')); - $this->assertRaw('href="http://www.test26.com"', t('Parse multiple www-strings inside same paragraph limited with
and .')); - $this->assertRaw('href="mailto:person@test27.com"', t('Parse email string with multiple www-strings inside same paragraph limited with
and .')); - $this->assertRaw('href="http://www.test28.com"', t('Parse multiple www-strings inside same paragraph limited with
and .')); - $this->assertNoRaw('href="http://www.test29.com"', t('Do not parse URL inside a script element (part of javascript code).')); - $this->assertNoRaw('href="http://www.test30.com"', t('Do not parse URL inside an a element.')); - $this->assertRaw('href="http://www.test31.com"', t('Parse URL inside strong tag.')); - $this->assertRaw('href="http://www.test32.com"', t('Parse URL inside em tag.')); - $this->assertRaw('href="ftp://ftp.test33.com"', t('Parse ftp:// URL.')); - $this->assertNoRaw('href="http://www.test41.com"', t('Do not parse www-strings inside an a element title attribute.')); - $this->assertNoRaw('assertRaw('href="http://www.test44.com"', t('Parse www-string inside dl dt tags.')); - $this->assertRaw('href="http://www.test45.com"', t('Parse URL inside dl dd tags.')); - $this->assertRaw('href="mailto:person@test46.com"', t('Parse email string inside dl dd tags.')); - $this->assertRaw('href="http://www.test47.com"', t('Parse www-string with text inside dl dd tags.')); - $this->assertRaw('href="http://www.test48.com"', t('Parse URL with text inside dl dd tags.')); - $this->assertRaw('href="mailto:person@test49.com"', t('Parse email string with text inside dl dd tags.')); - $this->assertNoRaw('href="http://www.test50.com"', t('Do not parse URL that is inside HTML comment.')); - $this->assertRaw('hello.... there!', t('Verify that last part of normal text is preserved intact.')); - - - $this->deleteFormat($format); - } - /** * Test the line break filter */ -- cgit v1.2.3