/[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.10 by wakaba, Fri Aug 15 05:53:23 2008 UTC revision 1.12 by wakaba, Fri Aug 15 12:11:56 2008 UTC
# Line 81  sub add_error ($%) { Line 81  sub add_error ($%) {
81      $error_layer = 'syntax'; ## NOTE: Unknown - an error of the implementation      $error_layer = 'syntax'; ## NOTE: Unknown - an error of the implementation
82    }    }
83    
   my $error_type_text = $opt{type};  
   
84    my $class = qq[level-$error_level layer-$error_layer];    my $class = qq[level-$error_level layer-$error_layer];
85    
86    ## Line & column numbers (prepare values)    ## Line & column numbers (prepare values)
# Line 205  sub add_error ($%) { Line 203  sub add_error ($%) {
203    $out->text (': ');    $out->text (': ');
204        
205    ## Error message    ## Error message
206      my $error_type_text = $opt{type};
207    $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text});    $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text});
208    
209    ## Additional error description    ## Additional error description
210    if (defined $opt{text}) {    if (defined $opt{text}) { ## TODO: Remove this block once all errors are put into the catalog.
211      $out->html (' (<q>');      $out->html (' (<q>');
212      $out->text ($opt{text});      $out->text ($opt{text});
213      $out->html ('</q>)');      $out->html ('</q>)');
# Line 292  sub generate_result_section ($) { Line 291  sub generate_result_section ($) {
291         target => 'transfer-errors', score_base => 20,         target => 'transfer-errors', score_base => 20,
292         parent_status => $maindoc_status},         parent_status => $maindoc_status},
293        {label => 'Encode L.', status => $self->{layers}->{encode},        {label => 'Encode L.', status => $self->{layers}->{encode},
294         score_base => 10,         target => 'parse-errors', score_base => 10,
295         parent_status => $maindoc_status},         parent_status => $maindoc_status},
296        {label => 'Char L.', status => $self->{layers}->{charset},        {label => 'Char L.', status => $self->{layers}->{charset},
297         score_base => 10,         score_base => 10,

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24