You are here

function CascadingStylesheetsTestCase::testRenderInlineNoPreprocess in SimpleTest 7

Tests rendering inline stylesheets with preprocessing off.

File

tests/common.test, line 538
Tests for common.inc functionality.

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, t('Rendering non-preprocessed inline CSS adds it to the page.'));
}