Commit 4b7943a2 authored by Dries's avatar Dries

- Patch #445950 by boombatower: interface improvements for SimpleTest.

parent 5f08579b
......@@ -6,7 +6,7 @@
/* Test Table */
#simpletest-form-table th.select-all {
width: 50px;
width: 25px;
}
th.simpletest_test {
......
......@@ -5,4 +5,5 @@ package = Core
version = VERSION
core = 7.x
files[] = simpletest.module
files[] = simpletest.pages.inc
files[] = simpletest.install
This diff is collapsed.
......@@ -204,10 +204,10 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
if ($fieldset = $this->getResultFieldSet()) {
// Code assumes this is the only test in group.
$results['summary'] = $this->asText($fieldset->div);
$results['name'] = $this->asText($fieldset->fieldset->legend);
$results['name'] = $this->asText($fieldset->legend);
$results['assertions'] = array();
$tbody = $fieldset->fieldset->table->tbody;
$tbody = $fieldset->table->tbody;
foreach ($tbody->tr as $row) {
$assertion = array();
$assertion['message'] = $this->asText($row->td[0]);
......@@ -233,7 +233,7 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
$fieldsets = $this->xpath('//fieldset');
$info = $this->getInfo();
foreach ($fieldsets as $fieldset) {
if ($fieldset->legend == $info['group']) {
if ($fieldset->legend == $info['name']) {
return $fieldset;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment