1<?php
2
3class TestRadioPng extends GenericTest {
4  function testRadioPngRender() {
5    parse_config_file('../html2ps.config');
6    $media = Media::predefined("A4");
7
8    $pipeline = $this->preparePipeline($media);
9    $pipeline->output_driver = new OutputDriverPng();
10    $pipeline->fetchers = array(new MyFetcherMemory('
11<html>
12<head></head>
13<body>
14<input type="radio" name="name"/>
15</body>
16</html>
17',''));
18
19    $tree = $pipeline->_layout_item('', $media, 0, $context, $postponed_filter);
20
21    $this->assertNotNull($tree);
22
23    $pipeline->_show_item($tree, 0, $context, $media, $postponed_filter);
24  }
25
26  function testCheckedRadioPngRender() {
27    parse_config_file('../html2ps.config');
28    $media = Media::predefined("A4");
29
30    $pipeline = $this->preparePipeline($media);
31    $pipeline->output_driver = new OutputDriverPng();
32    $pipeline->fetchers = array(new MyFetcherMemory('
33<html>
34<head></head>
35<body>
36<input type="radio" name="name" checked="checked"/>
37</body>
38</html>
39',''));
40
41    $tree = $pipeline->_layout_item('', $media, 0, $context, $postponed_filter);
42
43    $this->assertNotNull($tree);
44
45    $pipeline->_show_item($tree, 0, $context, $media, $postponed_filter);
46  }
47}
48
49?>