Преглед на файлове

helps if we test the right order azy...

AzaezelX преди 2 години
родител
ревизия
1ddef642c1
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      Engine/source/windowManager/test/windowManagerTest.cpp

+ 3 - 2
Engine/source/windowManager/test/windowManagerTest.cpp

@@ -29,11 +29,12 @@ TEST(WinMgr, BasicAPI)
 {
 {
    PlatformWindowManager *pwm = CreatePlatformWindowManager();
    PlatformWindowManager *pwm = CreatePlatformWindowManager();
 
 
-   // Check out the primary desktop area...
-   RectI primary = pwm->getPrimaryDesktopArea();
    EXPECT_TRUE(pwm)
    EXPECT_TRUE(pwm)
       << "no monitor to test against!";
       << "no monitor to test against!";
 
 
+   // Check out the primary desktop area...
+   RectI primary = pwm->getPrimaryDesktopArea();
+
    EXPECT_TRUE(primary.isValidRect())
    EXPECT_TRUE(primary.isValidRect())
       << "Got some sort of invalid rect from the window manager!";
       << "Got some sort of invalid rect from the window manager!";