/[suikacvs]/test/html-webhacc/WebHACC/Result.pm
Suika

Diff of /test/html-webhacc/WebHACC/Result.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by wakaba, Thu Aug 14 15:50:42 2008 UTC revision 1.10 by wakaba, Fri Aug 15 05:53:23 2008 UTC
# Line 52  sub add_error ($%) { Line 52  sub add_error ($%) {
52    my ($self, %opt) = @_;    my ($self, %opt) = @_;
53    
54    my $out = $self->output;    my $out = $self->output;
55      $out->has_error (1);
56    
57    my $error_level = $opt{level};    my $error_level = $opt{level};
58    if (not defined $error_level) {    if (not defined $error_level) {
# Line 193  sub add_error ($%) { Line 194  sub add_error ($%) {
194      }      }
195            
196      unless ($has_location) {      unless ($has_location) {
197        $out->text ('Unknown location');        $out->nl_text ('Unknown location');
198      }      }
199    }    }
200    
# Line 287  sub generate_result_section ($) { Line 288  sub generate_result_section ($) {
288        $out->start_tag ('th', colspan => 7, scope => 'col');        $out->start_tag ('th', colspan => 7, scope => 'col');
289        $out->nl_text ('Main document');        $out->nl_text ('Main document');
290      },      },
291        {label => 'Transfer', status => $self->{layers}->{transfer},        {label => 'Transfer L.', status => $self->{layers}->{transfer},
292         target => 'transfer-errors', score_base => 20,         target => 'transfer-errors', score_base => 20,
293         parent_status => $maindoc_status},         parent_status => $maindoc_status},
294        {label => 'Encode', status => $self->{layers}->{encode},        {label => 'Encode L.', status => $self->{layers}->{encode},
295         score_base => 10,         score_base => 10,
296         parent_status => $maindoc_status},         parent_status => $maindoc_status},
297        {label => 'Charset', status => $self->{layers}->{charset},        {label => 'Char L.', status => $self->{layers}->{charset},
298         score_base => 10,         score_base => 10,
299         parent_status => $maindoc_status},         parent_status => $maindoc_status},
300        {label => 'Syntax', status => $self->{layers}->{syntax},        {label => 'Syntax L.', status => $self->{layers}->{syntax},
301         target => 'parse-errors', score_base => 20,         target => 'parse-errors', score_base => 20,
302         parent_status => $maindoc_status},         parent_status => $maindoc_status},
303        {label => 'Structure', status => $self->{layers}->{structure},        {label => 'Structure L.', status => $self->{layers}->{structure},
304         target => 'document-errors', score_base => 20,         target => 'document-errors', score_base => 20,
305         parent_status => $maindoc_status},         parent_status => $maindoc_status},
306        {label => 'Semantics', status => $self->{layers}->{semantics},        {label => 'Semantics L.', status => $self->{layers}->{semantics},
307         score_base => 20,         score_base => 20,
308         parent_status => $maindoc_status},         parent_status => $maindoc_status},
309    );    );

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24