2nd Pass Render
This commit is contained in:
@@ -106,12 +106,13 @@ static void testDefaultSettingIsOff() {
|
||||
CHECK(s.mode == TailMode::None);
|
||||
CHECK(s.manualMs == kDefaultManualTailMs);
|
||||
CHECK(tailToggleLabel(s) == "Tail: Off");
|
||||
CHECK(s.secondPass == false);
|
||||
}
|
||||
|
||||
// --- serialize/deserialize: per-project persistence round-trip ----------------
|
||||
|
||||
static bool settingsEqual(const TailSetting& a, const TailSetting& b) {
|
||||
return a.mode == b.mode && a.manualMs == b.manualMs;
|
||||
return a.mode == b.mode && a.manualMs == b.manualMs && a.secondPass == b.secondPass;
|
||||
}
|
||||
|
||||
static void testRoundTripNoneDefault() {
|
||||
@@ -142,7 +143,7 @@ static void testSerializeByteIdentity() {
|
||||
// and re-serializing a round-tripped setting must be byte-identical — the blob
|
||||
// lives in the .rpp, so a byte shift would dirty every saved project.
|
||||
TailSetting s; // None + 2000.0 default
|
||||
CHECK(serializeTailSetting(s) == "{\"mode\":0,\"manualMs\":2000}");
|
||||
CHECK(serializeTailSetting(s) == "{\"mode\":0,\"manualMs\":2000,\"secondPass\":false}");
|
||||
TailSetting man; man.mode = TailMode::Manual; man.manualMs = 3141.592653589793;
|
||||
const std::string json = serializeTailSetting(man);
|
||||
auto back = deserializeTailSetting(json);
|
||||
|
||||
Reference in New Issue
Block a user