Index: drupal_test_case.php
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/drupal_test_case.php,v
retrieving revision 1.61
diff -u -p -r1.61 drupal_test_case.php
--- drupal_test_case.php	22 Mar 2008 02:50:06 -0000	1.61
+++ drupal_test_case.php	22 Mar 2008 05:01:00 -0000
@@ -837,7 +837,7 @@ class DrupalTestCase extends UnitTestCas
     $this->assertFieldByXPath($this->_constructFieldXpath('id', $id), $value, $message ? $message : t(' [browser] found field by id @id', array('@id' => $name)));
   }
   function assertField($id, $message = '') {
-    $this->assertFieldByXPath($this->_constructFieldXpath('name', $name) .'|'. $this->_constructFieldXpath('id', $id), '', $message);
+    $this->assertFieldByXPath($this->_constructFieldXpath('name', $id) .'|'. $this->_constructFieldXpath('id', $id), '', $message);
   }
   function _constructFieldXpath($attribute, $value) {
     return '//textarea[@'. $attribute .'="'. $value .'"]|//input[@'. $attribute .'="'. $value .'"]|//select[@'. $attribute .'="'. $value .'"]';
