Index: modules/user/user.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.test,v
retrieving revision 1.101
diff -u -p -r1.101 user.test
--- modules/user/user.test	27 Aug 2010 11:28:45 -0000	1.101
+++ modules/user/user.test	1 Oct 2010 02:52:46 -0000
@@ -1461,6 +1461,48 @@ class UserEditTestCase extends DrupalWeb
 }
 
 /**
+ * Test case for user page title and breadcrumb.
+ */
+class UserTitleTestCase extends DrupalWebTestCase {
+  public static function getInfo() {
+    return array(
+      'name' => 'User title',
+      'description' => 'Test user title and breadcrumb.',
+      'group' => 'User',
+    );
+	}
+
+  function setUp() {
+    parent::setUp();
+
+    // Create administrative and regular user.
+    $this->admin_user = $this->drupalCreateUser(array('administer users'));
+    $this->web_user = $this->drupalCreateUser(array());
+
+    // Login as administrative user
+    $this->drupalLogin($this->admin_user);
+  }
+
+  function testUserTitle() {
+    // Navigate to the web_user's page, and check the title, etc...
+    $this->drupalGet('user/' . $this->web_user->uid);
+    $xpath = '//title';
+    $this->assertEqual(current($this->xpath($xpath)), $this->web_user->name . ' | Drupal', 'Page title is equal to user name.', 'User');
+
+    $xpath = '//div[@class="breadcrumb"]/a[last()]';
+    $this->assertEqual(current($this->xpath($xpath)), 'Home', 'User view page breadcrumb is equal to Home.', 'User');
+
+    // Navigate to the web_user's edit page, and check the title, etc...
+    $this->drupalGet('user/' . $this->web_user->uid . '/edit');
+    $xpath = '//title';
+    $this->assertEqual(current($this->xpath($xpath)), $this->web_user->name . ' | Drupal', 'Page title is equal to user name.', 'User');
+
+    $xpath = '//div[@class="breadcrumb"]/a[last()]';
+    $this->assertEqual(current($this->xpath($xpath)), $this->web_user->name, 'User edit page breadcrumb contains the edited user\'s username.', 'User');
+  }
+}
+
+/**
  * Test case for user signatures.
  */
 class UserSignatureTestCase extends DrupalWebTestCase {
