diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-30 05:35:35 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-30 05:35:35 +0000 |
commit | f85f7cf8c109bdec720eb68c15c04f31b565a873 (patch) | |
tree | e3fc6655e447f5dd172e31e8a5a8e8d1a3dfd262 /modules/node | |
parent | ba62c9c54f9554c2d101577bbb53910299369fe1 (diff) | |
download | brdo-f85f7cf8c109bdec720eb68c15c04f31b565a873.tar.gz brdo-f85f7cf8c109bdec720eb68c15c04f31b565a873.tar.bz2 |
#349237 by c960657: Fix assertTitle()'s encoding of HTML attributes (with tests).
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/node/node.test b/modules/node/node.test index ab7301a3a..bbc91b5ef 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -501,6 +501,8 @@ class NodeTitleXSSTestCase extends DrupalWebTestCase { $node = $this->drupalCreateNode($edit); $this->drupalGet('node/' . $node->nid); + // assertTitle() decodes HTML-entities inside the <title> element. + $this->assertTitle($edit['title'] . ' | Drupal', t('Title is diplayed when viewing a node.')); $this->assertNoRaw($xss, t('Harmful tags are escaped when viewing a node.')); $this->drupalGet('node/' . $node->nid . '/edit'); |