 .../edit/lib/Drupal/edit/Tests/EditLoadingTest.php        |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php b/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php
index 4c815e1..651a3cf 100644
--- a/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php
+++ b/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php
@@ -303,6 +303,19 @@ public function testPseudoFields() {
   }
 
   /**
+   * Tests that Edit doesn't make fields rendered with display options editable.
+   */
+  public function testDisplayOptions() {
+    $node = entity_load('node', '1');
+    $display_settings = array(
+      'label' => 'inline',
+    );
+    $build = field_view_field($node, 'body', $display_settings);
+    $output = drupal_render($build);
+    $this->assertFalse(strpos($output, 'data-edit-field-id'), 'data-edit-field-id attribute not added when rendering field using dynamic display options.');
+  }
+
+  /**
    * Tests that Edit works with custom render pipelines.
    */
   public function testCustomPipeline() {
