diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 12:30:35 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 12:30:35 +0000 |
commit | 641306e95c976287a850446b421ab5d9643bf62b (patch) | |
tree | 25cd7529897a38896763aad517dfdda7fdc914f8 /modules/node/node.test | |
parent | 8b4ac207ca1ea76dc000969314b871aa3f85d343 (diff) | |
download | brdo-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.test | 4 |
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.')); |