summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-03 19:46:26 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-03 19:46:26 +0000
commit7818e2d4603d352c0a20574051ec72c9727a190d (patch)
treec31801a92495abf256380874b9a4e55b1a066f60 /modules/simpletest
parente824801b2be98a7c76662b328684b8edb1dc396b (diff)
downloadbrdo-7818e2d4603d352c0a20574051ec72c9727a190d.tar.gz
brdo-7818e2d4603d352c0a20574051ec72c9727a190d.tar.bz2
- Patch #676800 by casey, sun, james.elliott, cosmicdreams, seutje, Jacine: made fieldsets work on all browser.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/simpletest.test6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test
index b1a1f264d..375dab881 100644
--- a/modules/simpletest/simpletest.test
+++ b/modules/simpletest/simpletest.test
@@ -220,11 +220,11 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
if ($this->parse()) {
if ($fieldset = $this->getResultFieldSet()) {
// Code assumes this is the only test in group.
- $results['summary'] = $this->asText($fieldset->div[1]);
+ $results['summary'] = $this->asText($fieldset->div->div[1]);
$results['name'] = $this->asText($fieldset->legend);
$results['assertions'] = array();
- $tbody = $fieldset->table->tbody;
+ $tbody = $fieldset->div->table->tbody;
foreach ($tbody->tr as $row) {
$assertion = array();
$assertion['message'] = $this->asText($row->td[0]);
@@ -243,8 +243,6 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
/**
* Get the fieldset containing the results for group this test is in.
- *
- * @return fieldset containing the results for group this test is in.
*/
function getResultFieldSet() {
$fieldsets = $this->xpath('//fieldset');