Index: modules/simpletest/tests/form.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/form.test,v
retrieving revision 1.75
diff -u -p -r1.75 form.test
--- modules/simpletest/tests/form.test	15 Nov 2010 10:06:32 -0000	1.75
+++ modules/simpletest/tests/form.test	21 Nov 2010 09:13:22 -0000
@@ -418,8 +418,8 @@ class FormElementTestCase extends Drupal
     }
     // Verify that custom #description properties are output.
     foreach (array('checkboxes', 'radios') as $type) {
-      $elements = $this->xpath('//input[@name=:name]/following-sibling::div[@class=:class]', array(
-        ':name' => $type . '[foo]',
+      $elements = $this->xpath('//input[@id=:id]/following-sibling::div[@class=:class]', array(
+        ':id' => 'edit-' . $type . '-foo',
         ':class' => 'description',
       ));
       $this->assertTrue(count($elements), t('Custom %type option description found.', array(
