diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index 82e3055..eb40bbd 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -1465,6 +1465,11 @@ class JavaScriptTestCase extends DrupalWebTestCase {
     $styles = drupal_get_css();
     $this->assertTrue(strpos($scripts, 'misc/farbtastic/farbtastic.js'), t('JavaScript of library was added to the page.'));
     $this->assertTrue(strpos($styles, 'misc/farbtastic/farbtastic.css'), t('Stylesheet of library was added to the page.'));
+
+    $result = drupal_add_library('common_test', 'shorthand.plugin');
+    $path = drupal_get_path('module', 'common_test') . '/js/shorthand.js';
+    $scripts = drupal_get_js();
+    $this->assertTrue(strpos($scripts, $path), 'JavaScript specified in hook_library_info() using shorthand format (without any options) was added to the page.');
   }
 
   /**
diff --git a/modules/simpletest/tests/common_test.module b/modules/simpletest/tests/common_test.module
index e75b452..6daf80c 100644
--- a/modules/simpletest/tests/common_test.module
+++ b/modules/simpletest/tests/common_test.module
@@ -240,6 +240,21 @@ function common_test_library() {
       'misc/farbtastic/farbtastic.css' => array(),
     ),
   );
+  // Nominate a library using the shorthand format, where no options are given,
+  // just the file name.
+  $libraries['shorthand.plugin'] = array(
+    'title' => 'Shorthand Plugin',
+    'website' => 'http://www.example.com/',
+    'version' => '0.8.3.37',
+    'js' => array(
+      // Here we attach the JavaScript file using the shorthand format, only
+      // the file name is given, no options.
+      drupal_get_path('module', 'common_test') . '/js/shorthand.js',
+    ),
+    'dependencies' => array(
+      array('system', 'jquery'),
+    ),
+  );
   return $libraries;
 }
 
