summaryrefslogtreecommitdiff
path: root/modules/node/node.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 12:30:35 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 12:30:35 +0000
commit641306e95c976287a850446b421ab5d9643bf62b (patch)
tree25cd7529897a38896763aad517dfdda7fdc914f8 /modules/node/node.test
parent8b4ac207ca1ea76dc000969314b871aa3f85d343 (diff)
downloadbrdo-641306e95c976287a850446b421ab5d9643bf62b.tar.gz
brdo-641306e95c976287a850446b421ab5d9643bf62b.tar.bz2
#521852 by brandonojc, Everett Zufelt, mgifford, and sun: Provide semantic markup to local tasks to indicate an active task.
Diffstat (limited to 'modules/node/node.test')
-rw-r--r--modules/node/node.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/node/node.test b/modules/node/node.test
index 1e8ea8532..d3bc04f54 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -206,7 +206,9 @@ class PageEditTestCase extends DrupalWebTestCase {
$this->assertEqual($edit_url, $actual_url, t('On edit page.'));
// Check that the title and body fields are displayed with the correct values.
- $this->assertLink(t('Edit'), 0, t('Edit tab found.'));
+ $active = '<span class="element-invisible">' . t('(active tab)') . '</span>';
+ $link_text = t('!local-task-title !active', array('!local-task-title' => t('Edit'), '!active' => $active));
+ $this->assertText(strip_tags($link_text), 0, t('Edit tab found and marked active.'));
$this->assertFieldByName($title_key, $edit[$title_key], t('Title field displayed.'));
$this->assertFieldByName($body_key, $edit[$body_key], t('Body field displayed.'));