From a775f0580c40bf0fb64cc93309ea62f2eb2f62d8 Mon Sep 17 00:00:00 2001 From: Dries Date: Wed, 25 Jan 2012 15:53:29 -0500 Subject: [PATCH 1/2] - Patch #61456 by jeffschuler, edmund.kwok, jdefay, David_Rothstein, csevb10, alex_b, xjm, Steve Dondley: Aggregator titles display quotes and other characters with HTML entity equivalents badly (write tests). --- .../tests/aggregator_test_title_entities.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 core/modules/aggregator/tests/aggregator_test_title_entities.xml diff --git a/core/modules/aggregator/tests/aggregator_test_title_entities.xml b/core/modules/aggregator/tests/aggregator_test_title_entities.xml new file mode 100644 index 00000000000..e526e441841 --- /dev/null +++ b/core/modules/aggregator/tests/aggregator_test_title_entities.xml @@ -0,0 +1,14 @@ + + + + Example with Entities + http://example.com + Example RSS Feed With HTML Entities in Title + en-us + + Quote" Amp& + http://example.com/example-turns-one + Some text. + + + From a08405829ebe6e20f82c94d8e5c323f73ab1741b Mon Sep 17 00:00:00 2001 From: Dries Date: Wed, 25 Jan 2012 15:54:58 -0500 Subject: [PATCH 2/2] - Patch #61456 by jeffschuler, edmund.kwok, jdefay, David_Rothstein, csevb10, alex_b, xjm, Steve Dondley: Aggregator titles display quotes and other characters with HTML entity equivalents badly (write tests). --- core/modules/aggregator/aggregator.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/aggregator/aggregator.test b/core/modules/aggregator/aggregator.test index ec73a7e956e..27c46737eb2 100644 --- a/core/modules/aggregator/aggregator.test +++ b/core/modules/aggregator/aggregator.test @@ -928,6 +928,6 @@ class FeedParserTestCase extends AggregatorTestCase { aggregator_refresh($feed); $this->drupalGet('aggregator/sources/' . $feed->fid); $this->assertResponse(200, t('Feed %name exists.', array('%name' => $feed->title))); - $this->assertText("Quote" Amp&"); + $this->assertRaw("Quote" Amp&"); } }