1<?php 2 3class TestTagOlType extends GenericTest { 4 function testTagOlType1() { 5 $tree = $this->runPipeline(file_get_contents('test.tag.ol.type.html')); 6 7 $ol =& $tree->get_element_by_id('ol_1'); 8 $this->assertEqual(LST_DECIMAL, $ol->getCSSProperty(CSS_LIST_STYLE_TYPE)); 9 10 $ol =& $tree->get_element_by_id('ol_a'); 11 $this->assertEqual(LST_LOWER_LATIN, $ol->getCSSProperty(CSS_LIST_STYLE_TYPE)); 12 13 $ol =& $tree->get_element_by_id('ol_A'); 14 $this->assertEqual(LST_UPPER_LATIN, $ol->getCSSProperty(CSS_LIST_STYLE_TYPE)); 15 16 $ol =& $tree->get_element_by_id('ol_i'); 17 $this->assertEqual(LST_LOWER_ROMAN, $ol->getCSSProperty(CSS_LIST_STYLE_TYPE)); 18 19 $ol =& $tree->get_element_by_id('ol_I'); 20 $this->assertEqual(LST_UPPER_ROMAN, $ol->getCSSProperty(CSS_LIST_STYLE_TYPE)); 21 } 22} 23 24?>