diff options
author | jan Iversen <jani@apache.org> | 2018-09-02 09:13:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-07 14:37:18 -0700 |
commit | a93ecf3912bcd78930487b0e05f41ebd5c6e7ed4 (patch) | |
tree | 71e64c5d6ff705989ea68c7d3823752eb5100476 /tests/testqPrefTechnicalDetails.cpp | |
parent | ee6b5643b5581ec3fda3873543f9275235ae0598 (diff) | |
download | subsurface-a93ecf3912bcd78930487b0e05f41ebd5c6e7ed4.tar.gz |
tests: update qPref* to the shadow variable
The shadow variable causes properties only to be saved when
actual changed, therefore some test cases need update
Signed-off-by: Jan Iversen <jani@apache.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testqPrefTechnicalDetails.cpp')
-rw-r--r-- | tests/testqPrefTechnicalDetails.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/tests/testqPrefTechnicalDetails.cpp b/tests/testqPrefTechnicalDetails.cpp index b3abd8500..5f3fb4477 100644 --- a/tests/testqPrefTechnicalDetails.cpp +++ b/tests/testqPrefTechnicalDetails.cpp @@ -148,85 +148,85 @@ void TestQPrefTechnicalDetails::test_set_load_struct() tst->set_calcceiling(false); tst->set_calcceiling3m(false); tst->set_calcndltts(false); - tst->set_dcceiling(false); + tst->set_dcceiling(true); tst->set_display_deco_mode(RECREATIONAL); tst->set_display_unused_tanks(false); tst->set_ead(false); tst->set_gfhigh(29); tst->set_gflow(24); - tst->set_gf_low_at_maxdepth(false); + tst->set_gf_low_at_maxdepth(true); tst->set_hrgraph(false); tst->set_mod(false); tst->set_modpO2(1.12); tst->set_percentagegraph(false); tst->set_redceiling(false); tst->set_rulergraph(false); - tst->set_show_average_depth(false); - tst->set_show_ccr_sensors(false); - tst->set_show_ccr_setpoint(false); - tst->set_show_icd(false); - tst->set_show_pictures_in_profile(false); - tst->set_show_sac(false); - tst->set_show_scr_ocpo2(false); - tst->set_tankbar(false); + tst->set_show_average_depth(true); + tst->set_show_ccr_sensors(true); + tst->set_show_ccr_setpoint(true); + tst->set_show_icd(true); + tst->set_show_pictures_in_profile(true); + tst->set_show_sac(true); + tst->set_show_scr_ocpo2(true); + tst->set_tankbar(true); tst->set_vpmb_conservatism(64); - tst->set_zoomed_plot(false); + tst->set_zoomed_plot(true); prefs.calcalltissues = true; prefs.calcceiling = true; prefs.calcceiling3m = true; prefs.calcndltts = true; - prefs.dcceiling = true; + prefs.dcceiling = false; prefs.display_deco_mode = BUEHLMANN; prefs.display_unused_tanks = true; prefs.ead = true; prefs.gfhigh = 27; prefs.gflow = 25; - prefs.gf_low_at_maxdepth = true; + prefs.gf_low_at_maxdepth = false; prefs.hrgraph = true; prefs.mod = true; prefs.modpO2 = 1.02; prefs.percentagegraph = true; prefs.redceiling = true; prefs.rulergraph = true; - prefs.show_average_depth = true; - prefs.show_ccr_sensors = true; - prefs.show_ccr_setpoint = true; - prefs.show_icd = true; - prefs.show_pictures_in_profile = true; - prefs.show_sac = true; - prefs.show_scr_ocpo2 = true; - prefs.tankbar = true; + prefs.show_average_depth = false; + prefs.show_ccr_sensors = false; + prefs.show_ccr_setpoint = false; + prefs.show_icd = false; + prefs.show_pictures_in_profile = false; + prefs.show_sac = false; + prefs.show_scr_ocpo2 = false; + prefs.tankbar = false; prefs.vpmb_conservatism = 123; - prefs.zoomed_plot = true; + prefs.zoomed_plot = false; tst->load(); QCOMPARE(prefs.calcceiling, false); QCOMPARE(prefs.calcceiling3m, false); QCOMPARE(prefs.calcndltts, false); - QCOMPARE(prefs.dcceiling, false); + QCOMPARE(prefs.dcceiling, true); QCOMPARE(prefs.display_deco_mode, RECREATIONAL); QCOMPARE(prefs.display_unused_tanks, false); QCOMPARE(prefs.ead, false); QCOMPARE((int)prefs.gfhigh, 29); QCOMPARE((int)prefs.gflow, 24); - QCOMPARE(prefs.gf_low_at_maxdepth, false); + QCOMPARE(prefs.gf_low_at_maxdepth, true); QCOMPARE(prefs.hrgraph, false); QCOMPARE(prefs.mod, false); QCOMPARE(prefs.modpO2, 1.12); QCOMPARE(prefs.percentagegraph, false); QCOMPARE(prefs.redceiling, false); QCOMPARE(prefs.rulergraph, false); - QCOMPARE(prefs.show_average_depth, false); - QCOMPARE(prefs.show_ccr_sensors, false); - QCOMPARE(prefs.show_ccr_setpoint, false); - QCOMPARE(prefs.show_icd, false); - QCOMPARE(prefs.show_pictures_in_profile, false); - QCOMPARE(prefs.show_sac, false); - QCOMPARE(prefs.show_scr_ocpo2, false); - QCOMPARE(prefs.tankbar, false); + QCOMPARE(prefs.show_average_depth, true); + QCOMPARE(prefs.show_ccr_sensors, true); + QCOMPARE(prefs.show_ccr_setpoint, true); + QCOMPARE(prefs.show_icd, true); + QCOMPARE(prefs.show_pictures_in_profile, true); + QCOMPARE(prefs.show_sac, true); + QCOMPARE(prefs.show_scr_ocpo2, true); + QCOMPARE(prefs.tankbar, true); QCOMPARE((int)prefs.vpmb_conservatism, 64); - QCOMPARE(prefs.zoomed_plot, false); + QCOMPARE(prefs.zoomed_plot, true); } void TestQPrefTechnicalDetails::test_struct_disk() |