Changeset View
Changeset View
Standalone View
Standalone View
autotests/kstartupinfo_unittest.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | |||||
311 | { | 311 | { | ||
312 | { | 312 | { | ||
313 | QWindow window; | 313 | QWindow window; | ||
314 | const QByteArray str = "somefancyidwhichisrandom_kstartupinfo_unittest_2"; | 314 | const QByteArray str = "somefancyidwhichisrandom_kstartupinfo_unittest_2"; | ||
315 | KStartupInfo::setNewStartupId(&window, str); | 315 | KStartupInfo::setNewStartupId(&window, str); | ||
316 | QCOMPARE(KStartupInfo::startupId(), str); | 316 | QCOMPARE(KStartupInfo::startupId(), str); | ||
317 | } | 317 | } | ||
318 | 318 | | |||
319 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | ||||
319 | { | 320 | { | ||
320 | QWidget widget; | 321 | QWidget widget; | ||
321 | const QByteArray str = "somefancyidwhichisrandom_kstartupinfo_unittest_3"; | 322 | const QByteArray str = "somefancyidwhichisrandom_kstartupinfo_unittest_3"; | ||
322 | KStartupInfo::setNewStartupId(&widget, str); // deprecated | 323 | KStartupInfo::setNewStartupId(&widget, str); // deprecated | ||
323 | QCOMPARE(KStartupInfo::startupId(), str); | 324 | QCOMPARE(KStartupInfo::startupId(), str); | ||
324 | } | 325 | } | ||
326 | #endif | ||||
325 | } | 327 | } | ||
326 | 328 | | |||
327 | QTEST_MAIN(KStartupInfo_UnitTest) | 329 | QTEST_MAIN(KStartupInfo_UnitTest) | ||
328 | 330 | | |||
329 | #include "kstartupinfo_unittest.moc" | 331 | #include "kstartupinfo_unittest.moc" |