Index: modules/path/path.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/path/path.test,v
retrieving revision 1.32
diff -u -r1.32 path.test
--- modules/path/path.test	29 Jan 2010 22:40:41 -0000	1.32
+++ modules/path/path.test	2 Feb 2010 13:38:21 -0000
@@ -141,6 +141,22 @@
     $this->assertNoText($node1->title, 'Previous alias no longer works.');
     $this->assertResponse(404);
 
+    // Change alias, preview, then save.
+    $previous = $edit['path'];
+    $this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Preview'));
+    $edit['path'] = $this->randomName(8);
+    $this->drupalPost(NULL, $edit, t('Preview'));
+    $this->drupalPost(NULL, $edit, t('Save'));
+
+    // Confirm that the alias works.
+    $this->drupalGet($edit['path']);
+    $this->assertText($node1->title, 'Changed preview alias works.');
+
+    // Make sure that previous alias no longer works.
+    $this->drupalGet($previous);
+    $this->assertNoText($node1->title, 'Previous alias no longer works.');
+    $this->assertResponse(404);
+
     // Create second test node.
     $node2 = $this->drupalCreateNode();
 
