diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-14 10:43:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-14 10:43:21 +0000 |
commit | 5cbf5d3bc146a4092974b264cbc824efce69ef41 (patch) | |
tree | e01b9e6547fa759f0c195650faf209de34f98e29 /modules | |
parent | 3269eb2e08b2958a5b93333d1a94ce56a9e1b0bc (diff) | |
download | brdo-5cbf5d3bc146a4092974b264cbc824efce69ef41.tar.gz brdo-5cbf5d3bc146a4092974b264cbc824efce69ef41.tar.bz2 |
- Patch #510460 by tic2000: improved CSS test.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/simpletest/tests/common.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 1fdc6a13d..b2ae4a3dc 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -265,8 +265,8 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { * Tests rendering inline stylesheets through a full page request. */ function testRenderInlineFullPage() { - $css = 'body { padding: 0px; }'; - $compressed_css = '<style type="text/css">' . drupal_load_stylesheet_content($css, TRUE) . '</style>'; + $css = 'body { font-size: 254px; }'; + $expected = 'font-size:254px;'; // Create a node, using the PHP filter that tests drupal_add_css(). $settings = array( @@ -278,7 +278,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { // Fetch the page. $this->drupalGet('node/' . $node->nid); - $this->assertRaw($compressed_css, t('Inline stylesheets appear in the full page rendering.')); + $this->assertRaw($expected, t('Inline stylesheets appear in the full page rendering.')); } } |