diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
index d36a35e..75552a8 100644
--- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
@@ -234,6 +234,10 @@ class TermTest extends TaxonomyTestBase {
     $third_term = $this->createTerm($this->vocabulary);
     $third_term->name = 'term with, a comma and / a slash';
     taxonomy_term_save($third_term);
+    // Add another term that starts with a dot character.
+    $term_starting_dot = $this->createTerm($this->vocabulary);
+    $term_starting_dot->name = '.term';
+    taxonomy_term_save($term_starting_dot);
 
     // Try to autocomplete a term name that matches both terms.
     // We should get both term in a json encoded string.
@@ -267,6 +271,14 @@ class TermTest extends TaxonomyTestBase {
     }
     $target = array($n => check_plain($third_term->name));
     $this->assertRaw(drupal_json_encode($target), 'Autocomplete returns a term containing a comma and a slash.');
+
+    // Try to autocomplete a term name that starts with a dot.
+    $input = '.t';
+    $url = 'taxonomy/autocomplete/taxonomy_';
+    $url .= $this->vocabulary->machine_name . '/' . $input;
+    $this->drupalGet($url);
+    $target = array($term_starting_dot->name => check_plain($term_starting_dot->name));
+    $this->assertRaw(drupal_json_encode($target), 'Autocomplete returns a term starting with a dot.');
   }
 
   /**
