Révision 8d02775b
Ajouté par Assos Assos il y a environ 4 ans
drupal7/sites/all/modules/webform/tests/WebformComponentsTestCase.test | ||
---|---|---|
189 | 189 |
$for = $this->xpath("//*[@id=':id']", array(':id' => $label['for'])); |
190 | 190 |
$this->assertTrue($for, 'Label with @for "' . $label['for'] . '" points to an element.'); |
191 | 191 |
} |
192 |
|
|
193 |
// Test grid headers. |
|
194 |
$grid_headers = $this->xpath('//th[@class="webform-grid-question"]'); |
|
195 |
$this->assertIdentical(count($grid_headers), 3, 'There are three table headers with class "webform-grid-question".'); |
|
196 |
$grid_headers = $this->xpath('//th[@class="webform-grid-question"]/text()'); |
|
197 |
$this->assertIdentical(count($grid_headers), 2, 'There are two non-empty table headers with class "webform-grid-question".'); |
|
198 |
$this->assertIdentical((string) $grid_headers[0], 'Grid Keyed', 'The value of the left non-empty header is "Grid Keyed".'); |
|
199 |
$this->assertIdentical((string) $grid_headers[1], 'Grid Keyed', 'The value of the right non-empty header is the same as the left.'); |
|
192 | 200 |
} |
193 | 201 |
|
194 | 202 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules