=== modified file 'modules/node/node.test'
--- modules/node/node.test	2010-08-08 13:02:37 +0000
+++ modules/node/node.test	2010-08-20 15:05:17 +0000
@@ -1767,3 +1767,31 @@ class NodeTokenReplaceTestCase extends D
     }
   }
 }
+
+class NodeCustomDisplayModeTest extends DrupalWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Custom display mode',
+      'description' => 'Customize full display mode and make sure fields still displays.',
+      'group' => 'Node',
+    );
+  }
+
+  function setUp() {
+    parent::setUp();
+    $this->admin_user = $this->drupalCreateUser(array('administer content types'));
+    $this->drupalLogin($this->admin_user);
+  }
+
+  function testCustomDisplay() {
+    $node = $this->drupalCreateNode();
+    $edit['view_modes_custom[full]'] = TRUE;
+    $edit['view_modes_custom[rss]'] = TRUE;
+    $this->drupalGet("node/$node->nid");
+    $this->assertText($node->body[LANGUAGE_NONE][0]['value']);
+    $this->drupalPost('admin/structure/types/manage/page/display', $edit, t('Save'));
+    $this->drupalGet("node/$node->nid");
+    $this->assertText($node->body[LANGUAGE_NONE][0]['value']);
+  }
+}

