diff options
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index b7c529e1..a5a36464 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -2102,6 +2102,12 @@ test "a Restore asks again for the ThemeFile the dump names, as a /ctl write of else => {}, } else return error.NoThemeFileAsked; try testing.expectEqualStrings(good, pardes.colors.themeFileRequest(restored, asked.generation).?.path); + // The file broken since, the load fails: the restored session still + // shows the theme the old one did, and names the file it loaded. + try testing.expectEqualStrings("restored", restored.theme().name); + pardes.colors.failThemeFile(restored, asked.generation, error.ParseZon); + try testing.expectEqualStrings("restored", restored.theme().name); + try testing.expectEqualStrings(good, restored.theme_file_path.get()); } test "a ThemeFile that fails to load changes nothing: the root ctl still names the one loaded, or none" { |
