/* Test that a non-modal child window of a modal dialog is shown in front of the dialog even if the dialog becomes modal after the child window is created. */ void tst_MacGui::nonModalOrder() { clearSequence(); PrimaryWindowDialog primary; primary.resize(400, 400); primary.move(100, 100); primary.exec(); QCOMPARE(primary.frontWidget, primary.secondaryWindow); }
/* Test that a non-modal child window of a modal dialog is shown in front of the dialog even if the dialog becomes modal after the child window is created. */ void tst_MacGui::nonModalOrder() { clearSequence(); PrimaryWindowDialog primary; primary.resize(400, 400); primary.move(100, 100); primary.exec(); QEXPECT_FAIL("", "Non-modal child windows show behind the modal dialig", Abort); QCOMPARE(primary.frontWidget, primary.secondaryWindow); }