summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-21 01:35:25 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-21 01:35:25 +0000
commit34dbad55c589b8c1f3c3fc1eadfb88d989516695 (patch)
treed7be6b0f6b0ceab19910886b65dbc37902526508 /modules/simpletest/tests
parent605362393ddef1472d25705647326002b68992d5 (diff)
downloadbrdo-34dbad55c589b8c1f3c3fc1eadfb88d989516695.tar.gz
brdo-34dbad55c589b8c1f3c3fc1eadfb88d989516695.tar.bz2
#444228 follow-up by Tri, ridgerunner, Damien Tournoud, et al: Improve Optimize CSS performance by removing support for Mac IE 5.5 comment hacks, and add tests. (Apologies; some of this went in with a previous commit http://drupal.org/cvs?commit=382522)
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/common.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index cb29f58b4..53fb5704f 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -101,13 +101,13 @@ class CommonURLUnitTest extends DrupalWebTestCase {
$class = $this->randomName();
$link = l($this->randomName(), $_GET['q'], array('attributes' => array('class' => array($class))));
$this->assertTrue($this->hasClass($link, $class), t('Custom class @class is present on link when requested', array('@class' => $class)));
- $this->assertTrue($this->hasClass($link, 'active'), t('Class @class is present on link to the current page', array('@class' => 'active')));
+ $this->assertTrue($this->hasClass($link, 'active'), t('Class @class is present on link to the current page', array('@class' => 'active')));
}
private function hasClass($link, $class) {
return preg_match('|class="([^\"\s]+\s+)*' . $class . '|', $link);
}
-
+
/**
* Test drupal_get_query_parameters().
*/
@@ -811,7 +811,8 @@ class CascadingStylesheetsUnitTest extends DrupalUnitTestCase {
// - Optimized expected content: name.css.optimized.css
$testfiles = array(
'css_input_without_import.css',
- 'css_input_with_import.css'
+ 'css_input_with_import.css',
+ 'comment_hacks.css'
);
$path = drupal_get_path('module', 'simpletest') . '/files/css_test_files';
foreach ($testfiles as $file) {