/[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.17 by wakaba, Sat Aug 30 10:27:47 2008 UTC revision 1.20 by wakaba, Sun Sep 14 06:33:27 2008 UTC
# Line 117  sub add_error ($%) { Line 117  sub add_error ($%) {
117        $column = $opt{column};        $column = $opt{column};
118      }      }
119    }    }
120      $line += $opt{line_diff} || 0 if defined $line;
121      $column += $opt{column_diff} || 0 if defined $column;
122    $line = $line - 1 || 1    $line = $line - 1 || 1
123        if defined $line and not (defined $column and $column > 0);        if defined $line and not (defined $column and $column > 0);
124    
# Line 235  sub add_error ($%) { Line 237  sub add_error ($%) {
237    ## Error message    ## Error message
238    my $error_type_text = $opt{type};    my $error_type_text = $opt{type};
239    $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text},    $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text},
240                   value => $opt{value});                   value => $opt{value}, char => $opt{char},
241                     octets => $opt{octets});
242        
243    ## Link to a long description    ## Link to a long description
244    
# Line 320  sub generate_result_section ($) { Line 323  sub generate_result_section ($) {
323         target => 'parse-errors', score_base => 10,         target => 'parse-errors', score_base => 10,
324         parent_status => $maindoc_status},         parent_status => $maindoc_status},
325        {label => 'Char L.', status => $self->{layers}->{charset},        {label => 'Char L.', status => $self->{layers}->{charset},
326         score_base => 10,         target => 'parse-errors', score_base => 10,
327         parent_status => $maindoc_status},         parent_status => $maindoc_status},
328          ## TODO: char semantics layer
329        {label => 'Syntax L.', status => $self->{layers}->{syntax},        {label => 'Syntax L.', status => $self->{layers}->{syntax},
330         target => 'parse-errors', score_base => 20,         target => 'parse-errors', score_base => 20,
331         parent_status => $maindoc_status},         parent_status => $maindoc_status},

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.20

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24