Permalink
Browse files

Enabled and fixed QxtWindowSystem unit test on Mac

  • Loading branch information...
1 parent dc9d8b8 commit d091ed6bef2d899cfd9509a1573dfd813f5c9050 jpnurmi committed Nov 17, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 tests/unit/gui/unit/main.cpp
@@ -130,7 +130,13 @@ void TestQxtGui::testQxtConfirmationMessage()
void TestQxtGui::testQxtWindowSystem()
{
-#ifndef Q_WS_MAC
+ QWidget w;
+ w.setWindowTitle("qxt_window_system");
+ w.show();
+ w.raise();
+ w.activateWindow();
+ QTest::qWaitForWindowShown(&w);
+
// See: demos/qxtsnapshot
WId activeId = QxtWindowSystem::activeWindow();
QString activeTitle = QxtWindowSystem::windowTitle(activeId);
@@ -143,7 +149,6 @@ void TestQxtGui::testQxtWindowSystem()
QVERIFY(foundId == atId);
QVERIFY(activeTitle == foundTitle);
QVERIFY(foundTitle == atTitle);
-#endif
}
void TestQxtGui::testQxtDockWidget()

0 comments on commit d091ed6

Please sign in to comment.