commit c418f2fc1db0d3cabaa460eb4dc8a9b59e2443f5 Author: Joel Pittet Date: Sun Mar 10 22:59:57 2013 -0700 1898452-16 diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index d6060f65..6634be5 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -88,7 +88,7 @@ function simpletest_theme() { 'template' => 'simpletest-test-table', ), 'simpletest_result_summary' => array( - 'variables' => array('form' => NULL), + 'render element' => 'form', 'file' => 'simpletest.pages.inc', 'template' => 'simpletest-result-summary', ), diff --git a/core/modules/simpletest/simpletest.pages.inc b/core/modules/simpletest/simpletest.pages.inc index ffc1874..f238b5e 100644 --- a/core/modules/simpletest/simpletest.pages.inc +++ b/core/modules/simpletest/simpletest.pages.inc @@ -139,15 +139,15 @@ function template_preprocess_simpletest_test_table(&$variables) { // Store test title and description so that checkbox won't render them. $title = $test['#title']; $description = $test['#description']; + unset($test['#description']); $test['#title_display'] = 'invisible'; - unset($test['#description']); // Test name is used to determine what tests to run. $test['#name'] = $test_name; $row[] = array( - 'data' => drupal_render($test), + 'data' => $test, 'class' => array('simpletest-test-select'), ); $row[] = array( @@ -381,7 +381,6 @@ function simpletest_result_form_submit($form, &$form_state) { */ function template_preprocess_simpletest_result_summary(&$variables) { $form = $variables['form']; - unset($variables['form']); $variables['summary'] = _simpletest_format_summary_line($form); $variables['status'] = $form['#ok'] ? 'pass' : 'fail'; } diff --git a/core/modules/simpletest/templates/simpletest-result-summary.html.twig b/core/modules/simpletest/templates/simpletest-result-summary.html.twig index 248595b..e4f298a 100644 --- a/core/modules/simpletest/templates/simpletest-result-summary.html.twig +++ b/core/modules/simpletest/templates/simpletest-result-summary.html.twig @@ -13,4 +13,4 @@ * @ingroup themeable */ #} -
{{ summary }}