diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-08 15:36:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-08 15:36:12 +0000 |
commit | 7faedbdd5f9d65058463274c7b5a408e15934063 (patch) | |
tree | 88547593bd0cc76ca99da2162e871c36ed97bad0 /modules/simpletest/tests | |
parent | 17d30dc3a37c9eb524d601a34004efc92322d984 (diff) | |
download | brdo-7faedbdd5f9d65058463274c7b5a408e15934063.tar.gz brdo-7faedbdd5f9d65058463274c7b5a408e15934063.tar.bz2 |
- Patch #460448 by sun: some CSS rules are broken once CSS aggregation is enabled.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/common.test | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 43f4b5cc1..c63633ee7 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -862,11 +862,10 @@ class CascadingStylesheetsUnitTest extends DrupalUnitTestCase { /** * Tests basic CSS loading with and without optimization via drupal_load_stylesheet(). * - * This can be enhanced by adding additional CSS files with variant test cases. - * Currently, this is specifically testing to make sure that whitespace - * is treated with adequate respect (see http://drupal.org/node/472820) and - * that image paths in imported files are preserved (see - * http://drupal.org/node/265719). + * Known tests: + * - Retain white-space in selectors. (http://drupal.org/node/472820) + * - Proper URLs in imported files. (http://drupal.org/node/265719) + * - Retain pseudo-selectors. (http://drupal.org/node/460448) */ function testLoadCssBasic() { // Array of files to test living in 'simpletest/files/css_test_files/'. @@ -882,10 +881,16 @@ class CascadingStylesheetsUnitTest extends DrupalUnitTestCase { foreach ($testfiles as $file) { $expected = file_get_contents("$path/$file.unoptimized.css"); $unoptimized_output = drupal_load_stylesheet("$path/$file.unoptimized.css", FALSE); + $this->verbose('Expected:<pre>' . $expected . '</pre>' + . 'Actual:<pre>' . $unoptimized_output . '</pre>' + ); $this->assertEqual($unoptimized_output, $expected, t('Unoptimized CSS file has expected contents (@file)', array('@file' => $file))); $expected = file_get_contents("$path/$file.optimized.css"); $optimized_output = drupal_load_stylesheet("$path/$file", TRUE); + $this->verbose('Expected:<pre>' . $expected . '</pre>' + . 'Actual:<pre>' . $optimized_output . '</pre>' + ); $this->assertEqual($optimized_output, $expected, t('Optimized CSS file has expected contents (@file)', array('@file' => $file))); } } |