runPipeline('
LINE1
LINE2
LINE3
LINE4
LINE5
LINE6
LINE7
LINE8
LINE9
LINE10
');
$first_div = $tree->get_element_by_id('div1');
$second_div = $tree->get_element_by_id('div2');
$this->assertWithinMargin($first_div->get_full_height(),
$second_div->get_full_height(),
0.01,
"DIVs have different heights! [%s]");
}
function testHeightsWithoutBR() {
$tree = $this->runPipeline('
LINE1
LINE2
LINE3
LINE4
LINE5
LINE6
LINE7
LINE8
LINE9
LINE10
');
$first_div = $tree->get_element_by_id('div1');
$second_div = $tree->get_element_by_id('div2');
$this->assertWithinMargin($first_div->get_full_height(),
$second_div->get_full_height(),
0.01,
"DIVs have different heights! [%s]");
}
}
?>