From 34dbad55c589b8c1f3c3fc1eadfb88d989516695 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 21 Jun 2010 01:35:25 +0000 Subject: #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) --- modules/simpletest/tests/common.test | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/simpletest/tests/common.test') 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) { -- cgit v1.2.3