? modules/simpletest/simpletest-accessible-v1.patch
Index: modules/simpletest/simpletest.css
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.css,v
retrieving revision 1.6
diff -u -p -r1.6 simpletest.css
--- modules/simpletest/simpletest.css 4 Aug 2009 06:47:00 -0000 1.6
+++ modules/simpletest/simpletest.css 3 Feb 2010 20:23:54 -0000
@@ -71,3 +71,22 @@ div.simpletest-image {
display: inline;
cursor: pointer;
}
+
+a.simpletest-collapse {
+ height: 0;
+ width: 0;
+ top: -99em;
+ position: absolute;
+
+}
+
+a.simpletest-collapse:focus,
+a.simpletest-collapse:hover {
+ font-size: 80%;
+ top: 0px;
+ height: auto;
+ width: auto;
+ overflow: visible;
+ position: relative;
+ z-index: 1000;
+}
\ No newline at end of file
Index: modules/simpletest/simpletest.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.pages.inc,v
retrieving revision 1.24
diff -u -p -r1.24 simpletest.pages.inc
--- modules/simpletest/simpletest.pages.inc 20 Jan 2010 04:15:51 -0000 1.24
+++ modules/simpletest/simpletest.pages.inc 3 Feb 2010 20:23:54 -0000
@@ -83,8 +83,8 @@ function theme_simpletest_test_table($va
// Define the images used to expand/collapse the test groups.
$js = array(
'images' => array(
- theme('image', array('path' => 'misc/menu-collapsed.png', 'alt' => 'Expand', 'title' => 'Expand')),
- theme('image', array('path' => 'misc/menu-expanded.png', 'alt' => 'Collapsed', 'title' => 'Collapsed')),
+ theme('image', array('path' => 'misc/menu-collapsed.png', 'alt' => t('Expand'), 'title' => t('Expand'))) . ' (' . t('Expand') . ')',
+ theme('image', array('path' => 'misc/menu-expanded.png', 'alt' => t('Collapse'), 'title' => t('Collapse'))) . ' (' . t('Collapse') . ')',
),
);
Index: modules/simpletest/tests/form.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/form.test,v
retrieving revision 1.33
diff -u -p -r1.33 form.test
--- modules/simpletest/tests/form.test 8 Jan 2010 06:36:34 -0000 1.33
+++ modules/simpletest/tests/form.test 3 Feb 2010 20:23:54 -0000
@@ -305,6 +305,9 @@ class FormsElementsLabelsTestCase extend
$elements = $this->xpath('//input[@id="edit-form-textfield-test-title-after"]/following-sibling::label[@for="edit-form-textfield-test-title-after" and @class="option"]');
$this->assertTrue(isset($elements[0]), t("Label after field and label option class correct for text field."));
+ $elements = $this->xpath('//input[@id="edit-form-textfield-test-title-invisible"]/following-sibling::label[@for="edit-form-textfield-test-title-invisible" and @class="element-invisible"]');
+ $this->assertTrue(isset($elements[0]), t("Label after field and label class is element-invisible."));
+
$elements = $this->xpath('//label[@for="edit-form-textfield-test-title-no-show"]');
$this->assertFalse(isset($elements[0]), t("No label tag when title set not to display."));
}
Index: modules/simpletest/tests/form_test.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/form_test.module,v
retrieving revision 1.26
diff -u -p -r1.26 form_test.module
--- modules/simpletest/tests/form_test.module 8 Jan 2010 06:36:34 -0000 1.26
+++ modules/simpletest/tests/form_test.module 3 Feb 2010 20:23:54 -0000
@@ -537,6 +537,11 @@ function form_label_test_form(&$form_sta
'#title' => t('Textfield test for title after element'),
'#title_display' => 'after',
);
+ $form['form_textfield_test_title_invisible'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Textfield test for invisible title'),
+ '#title_display' => 'invisible',
+ );
// Textfield test for title set not to display
$form['form_textfield_test_title_no_show'] = array(
'#type' => 'textfield',