12#include "CoreMinimal.h"
13#include "WSSubsystem.h"
14#include "WSTestClass.generated.h"
16DECLARE_LOG_CATEGORY_EXTERN(LogWidgetStudioTest, All, All);
21UCLASS(Blueprintable, BlueprintType)
40 UFUNCTION(BlueprintCallable, Category =
"Widget Studio|Test")
41 void PerformAllTests();
46 static void LogTestResult(FString TestName,
bool bDidTestPass,
bool bPlaceNewlineAfter);
64 static bool FuncLibTestGetColorFromPalette();
70 static bool FuncLibTestGetColorBasedValue();
76 static bool FuncLibTestGetPaletteBasedValue();
85 static bool FuncLibTestGetTextureFromIconLibrary();
91 bool FuncLibTestGetControlDimensions();
97 static bool FuncLibTestGetSizeByModifier();
103 bool FuncLibTestGetBorderRadius();
109 bool FuncLibTestGetCurrentTheme();
115 bool FuncLibTestGetCurrentTypography();
121 bool FuncLibTestGetCurrentIconSet();
128 bool FuncLibTestSetTheme();
135 bool FuncLibTestSetIconSet();
142 bool FuncLibTestSetTypography();
152 bool FuncLibTestInterpWidgetColor()
const;
159 bool FuncLibTestInterpImageColor()
const;
166 bool FuncLibTestInterpTextColor()
const;
173 bool FuncLibTestInterpEditableTextBoxColor()
const;
180 bool FuncLibTestInterpSizeBoxOverrides()
const;
187 bool FuncLibTestInterpSizeBoxMinOverrides()
const;
194 bool FuncLibTestInterpWidgetTranslation()
const;
201 bool FuncLibTestInterpWidgetScale()
const;
208 bool FuncLibTestInterpWidgetRotation()
const;
215 bool FuncLibTestInterpWidgetOpacity()
const;
231 static bool FuncLibTestGetRoundedBackgroundMaterial();
237 static bool FuncLibTestGetRoundedOutlineMaterial();
243 static bool FuncLibTestGetRoundedShadowMaterial();
253 static bool FuncLibTestGetTypefaceFromTypography();
259 static bool FuncLibTestContainsNumbers();
265 static bool FuncLibTestFilterByCharacterLimit();
272 static bool FuncLibTestConstructFontInfoFromTypography();
279 static bool FuncLibTestConstructFontInfoFromStyle();
286 static bool FuncLibTestGetTypeScaleFromTypography();
293 static bool FuncLibTestGetFontWeightName();
310 bool TestGetIconSet();
316 bool TestGetTypography();
322 bool TestGetBorderRadius();
328 bool TestGetControlDimensions();
342 bool TestSetIconSet();
349 bool TestSetTypography();
356 bool TestSetBorderRadius();
363 bool TestSetControlDimensions();
370 bool TestResetTheme();
380 static bool TestGetAdjustedPercent();
384 TSoftObjectPtr<UWidgetStudioTheme> NordDarkTheme;
385 TSoftObjectPtr<UWidgetStudioTheme> NordLightTheme;
386 TSoftObjectPtr<UWidgetStudioIconSet> DefaultIconSet;
387 TSoftObjectPtr<UWidgetStudioIconSet> TestIconSet;
388 TSoftObjectPtr<UWidgetStudioTypography> OpenSansTypography;
389 TSoftObjectPtr<UWidgetStudioTypography> TestTypography;