You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
619 B
C++
19 lines
619 B
C++
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <Gui/SplashScreen.h>
|
|
|
|
TEST(SplashScreen, doesNotDrawBundledBrandTitles)
|
|
{
|
|
EXPECT_FALSE(Gui::shouldDrawSplashScreenTitle(QStringLiteral("FreeCAD")));
|
|
EXPECT_FALSE(Gui::shouldDrawSplashScreenTitle(QStringLiteral("Light works 3D")));
|
|
EXPECT_FALSE(Gui::shouldDrawSplashScreenTitle(QStringLiteral("LightWorks3D")));
|
|
EXPECT_FALSE(Gui::shouldDrawSplashScreenTitle(QStringLiteral("lightworks3D")));
|
|
}
|
|
|
|
TEST(SplashScreen, drawsCustomBrandTitles)
|
|
{
|
|
EXPECT_TRUE(Gui::shouldDrawSplashScreenTitle(QStringLiteral("CustomCAD")));
|
|
}
|