aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Ponomarenko <andrewponomarenko@yandex.ru>2016-06-21 19:17:17 +0300
committerAndrey Ponomarenko <andrewponomarenko@yandex.ru>2016-06-21 19:17:17 +0300
commitce36037cd5eadbc0cee77abd9215a89d4257e4e4 (patch)
treec3963bbea7e72ad9fcb4a4ac25f455fa02cb338c
parentd24a33767037d9660c77f49955c6b78eb43e910b (diff)
downloadabi-compliance-checker-ce36037cd5eadbc0cee77abd9215a89d4257e4e4.tar.gz
Improved style of the report. Fixed handling of patterns in -skip-* options. Fixed rounding of the BC rate in the report.
-rw-r--r--abi-compliance-checker.pl5
-rw-r--r--modules/Internals/Styles/Report.css8
2 files changed, 10 insertions, 3 deletions
diff --git a/abi-compliance-checker.pl b/abi-compliance-checker.pl
index c21c959..4cffd9d 100644
--- a/abi-compliance-checker.pl
+++ b/abi-compliance-checker.pl
@@ -1771,7 +1771,6 @@ sub classifyPath($)
my $Path = $_[0];
if($Path=~/[\*\+\(\[\|]/)
{ # pattern
- $Path=~s/\\/\\\\/g;
return ($Path, "Pattern");
}
elsif($Path=~/[\/\\]/)
@@ -11383,7 +11382,7 @@ sub isLastElem($$)
{
my ($Pos, $TypeRef) = @_;
my $Name = $TypeRef->{"Memb"}{$Pos}{"name"};
- if($Name=~/last|count|max|total/i)
+ if($Name=~/last|count|max|total|num/i)
{ # GST_LEVEL_COUNT, GST_RTSP_ELAST
return 1;
}
@@ -16091,7 +16090,7 @@ sub get_Summary($)
$META_DATA = "kind:".lc($Level).";".$META_DATA;
}
- my $BC_Rate = 100 - $RESULT{$Level}{"Affected"};
+ my $BC_Rate = show_number(100 - $RESULT{$Level}{"Affected"});
$TestResults .= "<tr><th>Compatibility</th>\n";
if($RESULT{$Level}{"Verdict"} eq "incompatible")
diff --git a/modules/Internals/Styles/Report.css b/modules/Internals/Styles/Report.css
index 684c5b2..2b8442d 100644
--- a/modules/Internals/Styles/Report.css
+++ b/modules/Internals/Styles/Report.css
@@ -205,27 +205,35 @@ span.value {
}
.passed {
background-color:#CCFFCC;
+ font-weight:100;
}
.warning {
background-color:#F4F4AF;
+ font-weight:100;
}
.failed {
background-color:#FFCCCC;
+ font-weight:100;
}
.new {
background-color:#C6DEFF;
+ font-weight:100;
}
.compatible {
background-color:#CCFFCC;
+ font-weight:100;
}
.almost_compatible {
background-color:#FFDAA3;
+ font-weight:100;
}
.incompatible {
background-color:#FFCCCC;
+ font-weight:100;
}
.gray {
background-color:#DCDCDC;
+ font-weight:100;
}
.top_ref {
font-size:0.69em;