diff --git a/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestTestForm.php b/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestTestForm.php index f6dd55c..80cf1de 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestTestForm.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestTestForm.php @@ -81,12 +81,7 @@ public function buildForm(array $form, array &$form_state) { // non-word/decimal characters with a dash (-). $test_class = strtolower(trim(preg_replace("/[^\w\d]/", "-", $group))); - // Select the right "expand"/"collapse" image, depending on whether the - // category is expanded (at least one test selected) or not. - $collapsed = TRUE; //!empty($element['#collapsed']); - $image_index = 0; //$collapsed ? 0 : 1; - - // // Place-holder for checkboxes to select group of tests. + // Place-holder for checkboxes to select group of tests. $form['tests']['table'][$group]['checkbox'] = array( '#wrapper_attributes' => array( 'id' => $test_class, @@ -114,7 +109,8 @@ public function buildForm(array $form, array &$form_state) { $current_js = array( 'testClass' => $test_class . '-test', 'testNames' => array(), - 'imageDirection' => $image_index, + // imageDirection maps to the 'images' index in the $js array. + 'imageDirection' => 0, 'clickActive' => FALSE, ); @@ -126,11 +122,8 @@ public function buildForm(array $form, array &$form_state) { $test_class_id = 'edit-' . drupal_html_id($class); $current_js['testNames'][] = $test_class_id; - // Test name is used to determine what tests to run. - // $test['#name'] = $class; - $form['tests']['table'][$test_class_id] = array( - '#attributes' => array('class' => array($test_class . '-test', ($collapsed ? 'js-hide' : ''))), + '#attributes' => array('class' => array($test_class . '-test', 'js-hide')), ); $form['tests']['table'][$test_class_id]['checkbox'] = array( @@ -166,7 +159,7 @@ public function buildForm(array $form, array &$form_state) { $js['simpletest-test-group-' . $test_class] = $current_js; } - // Add js array of settings. + // Add JavaScript array of settings. drupal_add_js(array('simpleTest' => $js), 'setting'); // Action buttons.