1<?php
2
3class TestTableBorderNested extends GenericTest {
4  function TestTableBorderNested1() {
5    $tree = $this->runPipeline('
6<table border="1" cellspacing="1" cellpadding="2">
7<tr>
8<td>
9<table id="table">
10<tr>
11<td id="cell">TEXT</td>
12</tr>
13</table>
14</td>
15</tr>
16</table>
17');
18
19    $table = $tree->get_element_by_id('table');
20    $table_border = $table->getCSSProperty(CSS_BORDER);
21    $this->assertEqual($table_border->left->style , BS_NONE);
22    $this->assertEqual($table_border->right->style , BS_NONE);
23    $this->assertEqual($table_border->top->style , BS_NONE);
24    $this->assertEqual($table_border->bottom->style , BS_NONE);
25
26    $cell = $tree->get_element_by_id('cell');
27    $cell_border = $cell->getCSSProperty(CSS_BORDER);
28    $this->assertEqual($cell_border->left->style , BS_NONE);
29    $this->assertEqual($cell_border->right->style , BS_NONE);
30    $this->assertEqual($cell_border->top->style , BS_NONE);
31    $this->assertEqual($cell_border->bottom->style , BS_NONE);
32  }
33}
34
35?>