From f746ed8ecc97a45db007002cd2d977cac3aad1cc Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sun, 4 Aug 2013 23:57:00 -0400 Subject: Issue #1959110 by a.ross, fietserwin, markabur: Fixed theme_table() outputs the 'no_striping' option as an HTML attribute. --- modules/simpletest/tests/theme.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/simpletest') 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('Header 1', '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.'); + } } /** -- cgit v1.2.3