? .DS_Store
? sites/all/modules/devel
? sites/default/files
? sites/default/settings.php
Index: misc/progress.gif
===================================================================
RCS file: /cvs/drupal/drupal/misc/progress.gif,v
retrieving revision 1.5
diff -u -p -r1.5 progress.gif
Binary files /tmp/cvsae4jCh and progress.gif differ
Index: modules/shortcut/shortcut.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/shortcut/shortcut.admin.inc,v
retrieving revision 1.14
diff -u -p -r1.14 shortcut.admin.inc
--- modules/shortcut/shortcut.admin.inc	30 Jun 2010 15:12:59 -0000	1.14
+++ modules/shortcut/shortcut.admin.inc	6 Sep 2010 02:43:29 -0000
@@ -556,6 +556,9 @@ function shortcut_admin_add_link($shortc
     }
   }
 
+  // Normalize the path in case it is an alias.
+  $shortcut_link['link_path'] = drupal_get_normal_path($shortcut_link['link_path']);
+
   // Add the link to the end of the list.
   $shortcut_set->links[] = $shortcut_link;
   shortcut_set_reset_link_weights($shortcut_set);
Index: modules/shortcut/shortcut.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/shortcut/shortcut.test,v
retrieving revision 1.5
diff -u -p -r1.5 shortcut.test
--- modules/shortcut/shortcut.test	5 Aug 2010 23:53:38 -0000	1.5
+++ modules/shortcut/shortcut.test	6 Sep 2010 02:43:29 -0000
@@ -32,12 +32,14 @@ class ShortcutTestCase extends DrupalWeb
   protected $set;
 
   function setUp() {
-    parent::setUp('toolbar', 'shortcut');
+    parent::setUp('toolbar', 'shortcut', 'path');
     // Create users.
     $this->admin_user = $this->drupalCreateUser(array('access toolbar', 'administer shortcuts', 'create article content', 'create page content', 'access content overview'));
     $this->shortcut_user = $this->drupalCreateUser(array('customize shortcut links', 'switch shortcut sets'));
+
     // Create a node.
     $this->node = $this->drupalCreateNode(array('type' => 'article'));
+
     // Log in as admin and grab the default shortcut set.
     $this->drupalLogin($this->admin_user);
     $this->set = shortcut_set_load(SHORTCUT_DEFAULT_SET_NAME);
@@ -114,10 +116,20 @@ class ShortcutLinksTestCase extends Shor
   function testShortcutLinkAdd() {
     $set = $this->set;
 
+    // Create an alias for the node so we can test aliases.
+    $path = array(
+      'source' => 'node/' . $this->node->nid,
+      'alias' => $this->randomName(8),
+    );
+    path_save($path);
+    drupal_clear_path_cache();
+
+    // Create some paths to test.
     $test_cases = array(
       array('path' => 'admin'),
       array('path' => 'admin/config/system/site-information'),
       array('path' => "node/{$this->node->nid}/edit"),
+      array('path' => $path['alias']),
     );
 
     // Check that each new shortcut links where it should.
@@ -131,7 +143,7 @@ class ShortcutLinksTestCase extends Shor
       $this->assertResponse(200);
       $saved_set = shortcut_set_load($set->set_name);
       $paths = $this->getShortcutInformation($saved_set, 'link_path');
-      $this->assertTrue(in_array($test['path'], $paths), 'Shortcut created: '. $test['path']);
+      $this->assertTrue(in_array(drupal_get_normal_path($test['path']), $paths), 'Shortcut created: '. $test['path']);
       $this->assertLink($title, 0, 'Shortcut link found on the page.');
     }
   }
