mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: move DiveComputer test from testpreferences
Remove DiveComputer test in testpreferences add the same DiveComputer tests to testqPrefDiveComputer Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
bb5c1da1b7
commit
87b00aea2b
3 changed files with 32 additions and 21 deletions
|
@ -466,27 +466,6 @@ void TestPreferences::testPreferences()
|
|||
TEST(update->dontCheckForUpdates(), false);
|
||||
TEST(update->lastVersionUsed(), QStringLiteral("tomaz-2"));
|
||||
TEST(update->nextCheck(), date);
|
||||
|
||||
auto dc = pref->dive_computer_settings;
|
||||
dc->set_device("TomazComputer");
|
||||
TEST(dc->device(), QStringLiteral("TomazComputer"));
|
||||
dc->set_device("Deepwater");
|
||||
TEST(dc->device(), QStringLiteral("Deepwater"));
|
||||
|
||||
dc->set_download_mode(0);
|
||||
TEST(dc->download_mode(), 0);
|
||||
dc->set_download_mode(1);
|
||||
TEST(dc->download_mode(), 1);
|
||||
|
||||
dc->set_product("Thingy1");
|
||||
TEST(dc->product(), QStringLiteral("Thingy1"));
|
||||
dc->set_product("Thingy2");
|
||||
TEST(dc->product(), QStringLiteral("Thingy2"));
|
||||
|
||||
dc->set_vendor("Sharewater");
|
||||
TEST(dc->vendor(), QStringLiteral("Sharewater"));
|
||||
dc->set_vendor("OSTS");
|
||||
TEST(dc->vendor(), QStringLiteral("OSTS"));
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestPreferences)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue