@@ -118,7 +118,7 @@ void SystemTest::testUpdate()
119 System system;
119 System system;
120 QVERIFY(system.wizardEnabled());
120 QVERIFY(system.wizardEnabled());
121− QVERIFY(system.versionToShow() > 0);
121+ QVERIFY(system.versionToShow() == system.CURRENT_VERSION);
123 system.setWizardEnabled(false);
123 system.setWizardEnabled(false);
124 QVERIFY(!system.wizardEnabled());
124 QVERIFY(!system.wizardEnabled());
@@ -128,28 +128,28 @@ void SystemTest::testUpdate()
129void SystemTest::testNoticeChanges()
129void SystemTest::testNoticeChanges()
131− // enable();
131+ enable();
133− // System system;
133+ System system;
134− // QSignalSpy spy(&system, SIGNAL(wizardEnabledChanged()));
134+ QSignalSpy spy(&system, SIGNAL(wizardEnabledChanged()));
136− // // System only guarantees its signals work correcty when using its own set
136+ // System only guarantees its signals work correcty when using its own set
137− // // methods (i.e. it won't necessarily notice if we modify the file behind
137+ // methods (i.e. it won't necessarily notice if we modify the file behind
138− // // the scenes). This is because watching all parent directories of the
138+ // the scenes). This is because watching all parent directories of the
139− // // wizard-has-run file with QFileSystemWatcher is a nightmare and waste of
139+ // wizard-has-run file with QFileSystemWatcher is a nightmare and waste of
140− // // resources for the corner case it is. So we'll just test the set method.
140+ // resources for the corner case it is. So we'll just test the set method.
142− // system.setWizardEnabled(false);
142+ system.setWizardEnabled(false);
143− // QTRY_COMPARE(spy.count(), 1);
143+ QTRY_COMPARE(spy.count(), 1);
145− // system.setWizardEnabled(true);
145+ system.setWizardEnabled(true);
146− // QTRY_COMPARE(spy.count(), 2);
146+ QTRY_COMPARE(spy.count(), 2);
148− // system.setWizardEnabled(false);
148+ system.setWizardEnabled(false);
149− // QTRY_COMPARE(spy.count(), 3);
149+ QTRY_COMPARE(spy.count(), 3);
151− // system.setWizardEnabled(true);
151+ system.setWizardEnabled(true);
152− // QTRY_COMPARE(spy.count(), 4);
152+ QTRY_COMPARE(spy.count(), 4);
155QTEST_MAIN(SystemTest)
155QTEST_MAIN(SystemTest)