Browse Source

helps if we test the right order azy...

AzaezelX 2 years ago
parent
commit
1ddef642c1
1 changed files with 3 additions and 2 deletions
  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();
 
-   // Check out the primary desktop area...
-   RectI primary = pwm->getPrimaryDesktopArea();
    EXPECT_TRUE(pwm)
       << "no monitor to test against!";
 
+   // Check out the primary desktop area...
+   RectI primary = pwm->getPrimaryDesktopArea();
+
    EXPECT_TRUE(primary.isValidRect())
       << "Got some sort of invalid rect from the window manager!";