diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-22 03:56:12 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-22 03:56:12 +0000 |
commit | d5968378ace8c13bf1d4b9d8365d725de76e0d75 (patch) | |
tree | 951b0b8fca1e0da1d74bea6107db36aa90f4dde6 /modules/simpletest/tests | |
parent | 096309b327b0cf9e8637aadac494860774dc7549 (diff) | |
download | brdo-d5968378ace8c13bf1d4b9d8365d725de76e0d75.tar.gz brdo-d5968378ace8c13bf1d4b9d8365d725de76e0d75.tar.bz2 |
#345973 by aaron and Rob Loach: Move parameter on drupal_add_css/js to a 'type' instead, to clean up calling code.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/common.test | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 8f0ede290..78dc9f769 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -170,7 +170,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { function setUp() { parent::setUp(); // Reset drupal_add_css() before each test. - drupal_add_css(NULL, NULL, TRUE); + drupal_add_css(NULL, 'reset'); } /** @@ -190,6 +190,14 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { } /** + * Makes sure that reseting the CSS empties the cache. + */ + function testReset() { + drupal_add_css(NULL, 'reset'); + $this->assertEqual(array(), drupal_add_css(), t('Resetting the CSS empties the cache.')); + } + + /** * Tests rendering the stylesheets. */ function testRenderFile() { @@ -352,7 +360,7 @@ class JavaScriptTestCase extends DrupalWebTestCase { variable_set('preprocess_js', 0); // Reset drupal_add_js() before each test. - drupal_add_js(NULL, NULL, TRUE); + drupal_add_js(NULL, 'reset'); } function tearDown() { @@ -404,7 +412,7 @@ class JavaScriptTestCase extends DrupalWebTestCase { */ function testReset() { drupal_add_js('misc/collapse.js'); - drupal_add_js(NULL, NULL, TRUE); + drupal_add_js(NULL, 'reset'); $this->assertEqual(array(), drupal_add_js(), t('Resetting the JavaScript correctly empties the cache.')); } |