[Libreoffice-commits] core.git: sd/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 15 10:53:20 UTC 2021
sd/qa/unit/sdmodeltestbase.hxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit a080727522e04b8e1fc1641c892af9227d2e8dad
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Apr 15 11:38:26 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Apr 15 12:52:36 2021 +0200
sd: improve output when asserting colors
Change-Id: I1d36ec286ee3c94f37bd0f0050927177f80cbdb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114134
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx
index 8f8110b16e2f..74e25b1f1aba 100644
--- a/sd/qa/unit/sdmodeltestbase.hxx
+++ b/sd/qa/unit/sdmodeltestbase.hxx
@@ -479,7 +479,10 @@ template<> struct assertion_traits<Color>
static std::string toString( const Color& c )
{
OStringStream ost;
- ost << static_cast<sal_uInt32>(c);
+ ost << "Color: R:" << static_cast<int>(c.GetRed())
+ << " G:" << static_cast<int>(c.GetGreen())
+ << " B:" << static_cast<int>(c.GetBlue())
+ << " A:" << static_cast<int>(255 - c.GetAlpha());
return ost.str();
}
};
More information about the Libreoffice-commits
mailing list