diff options
author | David Rothstein <drothstein@gmail.com> | 2013-08-04 23:57:00 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-08-04 23:57:00 -0400 |
commit | f746ed8ecc97a45db007002cd2d977cac3aad1cc (patch) | |
tree | 663d83f16a93c13e3164832e0000754b56ea6d26 /modules | |
parent | d6f960c6d04f2a2a8c43a39e5aa76673d89fac9d (diff) | |
download | brdo-f746ed8ecc97a45db007002cd2d977cac3aad1cc.tar.gz brdo-f746ed8ecc97a45db007002cd2d977cac3aad1cc.tar.bz2 |
Issue #1959110 by a.ross, fietserwin, markabur: Fixed theme_table() outputs the 'no_striping' option as an HTML attribute.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/simpletest/tests/theme.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/simpletest/tests/theme.test b/modules/simpletest/tests/theme.test index d377ef063..519a7a90a 100644 --- a/modules/simpletest/tests/theme.test +++ b/modules/simpletest/tests/theme.test @@ -215,6 +215,20 @@ class ThemeTableTestCase extends DrupalWebTestCase { $this->assertRaw('<thead><tr><th>Header 1</th>', 'Table header was printed.'); } + /** + * Tests that the 'no_striping' option works correctly. + */ + function testThemeTableWithNoStriping() { + $rows = array( + array( + 'data' => array(1), + 'no_striping' => TRUE, + ), + ); + $this->content = theme('table', array('rows' => $rows)); + $this->assertNoRaw('class="odd"', 'Odd/even classes were not added because $no_striping = TRUE.'); + $this->assertNoRaw('no_striping', 'No invalid no_striping HTML attribute was printed.'); + } } /** |