27 lines
710 B
C++
27 lines
710 B
C++
|
#include "CppUnitTest.h"
|
||
|
#include <QGuiApplication>
|
||
|
#include <QtWidgets/QApplication>
|
||
|
#include "ElementRendererTest.h"
|
||
|
|
||
|
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||
|
|
||
|
namespace UnitTest
|
||
|
{
|
||
|
TEST_CLASS(ElementRendererTest)
|
||
|
{
|
||
|
public:
|
||
|
TEST_METHOD(TestMethod1)
|
||
|
{
|
||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||
|
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||
|
char arg[] = "";
|
||
|
char* argv[] = { arg };
|
||
|
int argc = 1;
|
||
|
QApplication a(argc, argv);
|
||
|
TestGLWidget w;
|
||
|
w.show();
|
||
|
a.exec();
|
||
|
}
|
||
|
};
|
||
|
}
|