/[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.13 by wakaba, Fri Aug 15 16:03:46 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    $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text});    my $error_type_text = $opt{type};
207      $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text},
208                     value => $opt{value});
209    
210    ## Additional error description    ## Additional error description
211    if (defined $opt{text}) {    if (defined $opt{text}) { ## TODO: Remove this block once all errors are put into the catalog.
212      $out->html (' (<q>');      $out->html (' (<q>');
213      $out->text ($opt{text});      $out->text ($opt{text});
214      $out->html ('</q>)');      $out->html ('</q>)');
# Line 292  sub generate_result_section ($) { Line 292  sub generate_result_section ($) {
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 L.', status => $self->{layers}->{encode},        {label => 'Encode L.', status => $self->{layers}->{encode},
295         score_base => 10,         target => 'parse-errors', score_base => 10,
296         parent_status => $maindoc_status},         parent_status => $maindoc_status},
297        {label => 'Char L.', status => $self->{layers}->{charset},        {label => 'Char L.', status => $self->{layers}->{charset},
298         score_base => 10,         score_base => 10,

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24