function CascadingStylesheetsTestCase::testRenderInlineNoPreprocess
Tests rendering inline stylesheets with preprocessing off.
File
-
modules/
simpletest/ tests/ common.test, line 882
Class
- CascadingStylesheetsTestCase
- Test the Drupal CSS system.
Code
function testRenderInlineNoPreprocess() {
$css = 'body { padding: 0px; }';
drupal_add_css($css, array(
'type' => 'inline',
'preprocess' => FALSE,
));
$styles = drupal_get_css();
$this->assertTrue(strpos($styles, $css) > 0, 'Rendering non-preprocessed inline CSS adds it to the page.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.