summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-22 05:22:43 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-22 05:22:43 +0000
commitbf2c1934b971e62d8a424928b86fb6785212df78 (patch)
treebb915c4381c6974f480a210ec59b5f8a4549a8e1 /modules/simpletest/tests
parent61fc4b0b32dbb354d675e58b6c95305f52c3f553 (diff)
downloadbrdo-bf2c1934b971e62d8a424928b86fb6785212df78.tar.gz
brdo-bf2c1934b971e62d8a424928b86fb6785212df78.tar.bz2
#672954 by effulgentsia, Jacine: Fixed Wrap inline CSS with explicit CDATA
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/common.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index 9dc2532ab..6c1492e75 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -654,7 +654,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase {
*/
function testRenderInlinePreprocess() {
$css = 'body { padding: 0px; }';
- $css_preprocessed = '<style type="text/css" media="all">' . drupal_load_stylesheet_content($css, TRUE) . '</style>';
+ $css_preprocessed = '<style type="text/css" media="all">' . "\n<!--/*--><![CDATA[/*><!--*/\n" . drupal_load_stylesheet_content($css, TRUE) . "\n/*]]>*/-->\n" . '</style>';
drupal_add_css($css, array('type' => 'inline'));
$styles = drupal_get_css();
$this->assertEqual(trim($styles), $css_preprocessed, t('Rendering preprocessed inline CSS adds it to the page.'));