1<?php
2
3class TestLink extends GenericTest {
4  function testLinkNormal() {
5    $tree = $this->runPipeline(file_get_contents('test.link.1.html'));
6
7    $element =& $tree->get_element_by_id('div1');
8
9    $color =& $element->getCSSProperty(CSS_COLOR);
10    $this->assertEqual($color->r, 1);
11    $this->assertEqual($color->g, 0);
12    $this->assertEqual($color->b, 0);
13  }
14
15  function testLinkAutofix() {
16    $tree = $this->runPipeline(file_get_contents('test.link.2.html'));
17
18    $element =& $tree->get_element_by_id('div1');
19
20    $color =& $element->getCSSProperty(CSS_COLOR);
21    $this->assertEqual($color->r, 1);
22    $this->assertEqual($color->g, 0);
23    $this->assertEqual($color->b, 0);
24  }
25}
26
27
28?>