1 common.test CommonCascadingStylesheetsTestCase::testRenderInlineNoPreprocess()

Tests rendering inline stylesheets with preprocessing off.

File

core/modules/simpletest/tests/common.test, line 800
Tests for common.inc functionality.

Class

CommonCascadingStylesheetsTestCase
Test the Backdrop CSS system.

Code

function testRenderInlineNoPreprocess() {
  $css = 'body { padding: 0px; }';
  backdrop_add_css($css, array('type' => 'inline', 'preprocess' => FALSE));
  $styles = backdrop_get_css();
  $this->assertTrue(strpos($styles, $css) > 0, 'Rendering non-preprocessed inline CSS adds it to the page.');
}