Disable wxHyperlinkCtrl colours test under Wine
This doesn't work due to LM_GETITEM not returning the expected result after changing the state using LM_SETITEM under Wine. It could be worked around by remembering whether we changed the colours in our own variable, or maybe just reverted later if Wine fixes this, but for now disable the test.
This commit is contained in:
parent
082b19f863
commit
c41969eff2
1 changed files with 10 additions and 3 deletions
|
|
@ -48,11 +48,18 @@ TEST_CASE_METHOD(HyperlinkCtrlTestCase, "wxHyperlinkCtrl::Colour",
|
|||
CHECK(m_hyperlink->GetNormalColour().IsOk());
|
||||
CHECK(m_hyperlink->GetVisitedColour().IsOk());
|
||||
|
||||
// Changing hover colour doesn't work in wxMSW.
|
||||
#ifndef __WXMSW__
|
||||
// Changing hover colour doesn't work in wxMSW and Wine doesn't seem to
|
||||
// implement either LM_SETITEM or LM_GETITEM correctly, so skip this there.
|
||||
#ifdef __WXMSW__
|
||||
if ( wxIsRunningUnderWine() )
|
||||
{
|
||||
WARN("Skipping testing wxHyperlinkCtrl colours under Wine.");
|
||||
return;
|
||||
}
|
||||
#else // __WXMSW__
|
||||
m_hyperlink->SetHoverColour(*wxGREEN);
|
||||
CHECK( m_hyperlink->GetHoverColour() == *wxGREEN );
|
||||
#endif // !__WXMSW__
|
||||
#endif // __WXMSW__/!__WXMSW__
|
||||
|
||||
m_hyperlink->SetNormalColour(*wxRED);
|
||||
CHECK( m_hyperlink->GetNormalColour() == *wxRED );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue