diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php
index 392959d..0dbedd7 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php
@@ -66,4 +66,19 @@ function testThemeTableWithEmptyMessage() {
$this->assertRaw('
No strings available. | ', 'Correct colspan was set on empty message.');
$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.');
+ }
}
---|