diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-03 06:47:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-03 06:47:23 +0000 |
commit | 0d8515deb750fe2a02ee6f9f12860caceed7248f (patch) | |
tree | 9898c0801cec5188f8e54229a2760a4ff15f44f5 /modules/simpletest | |
parent | 3b2d24af0b8ca83415310e2b328cc60fa830837b (diff) | |
download | brdo-0d8515deb750fe2a02ee6f9f12860caceed7248f.tar.gz brdo-0d8515deb750fe2a02ee6f9f12860caceed7248f.tar.bz2 |
#552478 by pwolanin, samj, dropcube, and sun: Improve link/header API and support on node/comment pages rel=canonical and rel=shortlink standards.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/browser_test.module | 9 | ||||
-rw-r--r-- | modules/simpletest/tests/common.test | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/modules/simpletest/tests/browser_test.module b/modules/simpletest/tests/browser_test.module index 7fee6666a..fcd8b6d36 100644 --- a/modules/simpletest/tests/browser_test.module +++ b/modules/simpletest/tests/browser_test.module @@ -57,7 +57,14 @@ function browser_test_print_post_form_submit($form, &$form_state) { function browser_test_refresh_meta() { if (!isset($_GET['refresh'])) { $url = url('browser_test/refresh/meta', array('absolute' => TRUE, 'query' => array('refresh' => 'true'))); - drupal_add_html_head('<meta http-equiv="Refresh" content="0; URL=' . $url . '">'); + $element = array( + '#tag' => 'meta', + '#attributes' => array( + 'http-equiv' => 'Refresh', + 'content' => '0; URL=' . $url, + ), + ); + drupal_add_html_head($element, 'browser_test_refresh_meta'); return ''; } echo 'Refresh successful'; diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 135ca18cb..5672961f3 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -530,7 +530,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { $css_preprocessed = '<style type="text/css">' . drupal_load_stylesheet_content($css, TRUE) . '</style>'; drupal_add_css($css, 'inline'); $styles = drupal_get_css(); - $this->assertEqual($styles, "\n" . $css_preprocessed, t('Rendering preprocessed inline CSS adds it to the page.')); + $this->assertEqual($styles, "\n" . $css_preprocessed . "\n", t('Rendering preprocessed inline CSS adds it to the page.')); } /** |