Révision 01f36513
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/webform/tests/WebformComponentsTestCase.test | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file |
|
5 | 4 |
* Webform module component tests. |
6 | 5 |
*/ |
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 | 6 |
class WebformComponentsTestCase extends WebformTestCase { |
12 | 7 |
|
13 | 8 |
/** |
... | ... | |
185 | 180 |
$node = $this->webformForm(); |
186 | 181 |
$this->drupalGet('node/' . $node->nid); |
187 | 182 |
|
183 |
// Check th elements have the scope attribute. |
|
184 |
$this->assertRaw('<th class="checkbox webform-grid-option" scope="col">', 'Grid <code>th</code> elements have @scope of "col".'); |
|
185 |
|
|
188 | 186 |
// Check that each label @for points to an element. |
189 | 187 |
$labels = $this->xpath('//label/@for'); |
190 | 188 |
foreach ($labels as $label) { |
Formats disponibles : Unified diff
Weekly update of contrib modules