summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/ajax.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-30 07:48:07 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-30 07:48:07 +0000
commit466f693276617c8def2c72601c402e7be4b21ad0 (patch)
tree99006bbe7fe9946faf394da8bacf21fd711ddb59 /modules/simpletest/tests/ajax.test
parent1883b535a470dee68a924ae53c14160c0e594e1b (diff)
downloadbrdo-466f693276617c8def2c72601c402e7be4b21ad0.tar.gz
brdo-466f693276617c8def2c72601c402e7be4b21ad0.tar.bz2
- Patch #755566 by effulgentsia: use of ID within theme_filter_guidelines() breaks HTML validation with more than 1 field item on a page.
Diffstat (limited to 'modules/simpletest/tests/ajax.test')
-rw-r--r--modules/simpletest/tests/ajax.test8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/simpletest/tests/ajax.test b/modules/simpletest/tests/ajax.test
index c10b8362b..80ea29f58 100644
--- a/modules/simpletest/tests/ajax.test
+++ b/modules/simpletest/tests/ajax.test
@@ -268,9 +268,7 @@ class AJAXMultiFormTestCase extends AJAXTestCase {
$this->assert(count($this->xpath($field_xpath . $field_items_xpath_suffix)) == 1, t('Found the correct number of field items on the initial page.'));
$this->assertFieldByXPath($field_xpath . $button_xpath_suffix, NULL, t('Found the "add more" button on the initial page.'));
}
- // @todo Legacy bug of duplicate ids for filter-guidelines-FORMAT. See
- // http://drupal.org/node/755566.
- $this->assertNoDuplicateIds(t('Initial page contains unique IDs'), 'Other', array('filter-guidelines-1', 'filter-guidelines-2', 'filter-guidelines-3'));
+ $this->assertNoDuplicateIds(t('Initial page contains unique IDs'), 'Other');
// Submit the "add more" button of each form twice. After each corresponding
// page update, ensure the same as above. To successfully implement
@@ -286,9 +284,7 @@ class AJAXMultiFormTestCase extends AJAXTestCase {
$settings = array_merge_recursive($settings, $commands[0]['settings']);
$this->assert(count($this->xpath($field_xpath . $field_items_xpath_suffix)) == $i+2, t('Found the correct number of field items after an AJAX submission.'));
$this->assertFieldByXPath($field_xpath . $button_xpath_suffix, NULL, t('Found the "add more" button after an AJAX submission.'));
- // @todo Legacy bug of duplicate ids for filter-guidelines-FORMAT. See
- // http://drupal.org/node/755566.
- $this->assertNoDuplicateIds(t('Updated page contains unique IDs'), 'Other', array('filter-guidelines-1', 'filter-guidelines-2', 'filter-guidelines-3'));
+ $this->assertNoDuplicateIds(t('Updated page contains unique IDs'), 'Other');
}
}
}