Matthew Bentley
324b4d1e6d
Print errors to stderr
2016-04-01 21:40:03 -04:00
Matthew Bentley
d06def01ff
Add testing for prefs
...
Also, spelling fix in opts.rs
Fix order of imports to satisfy the lint
Fix split line in test
Fix multi-line string
2016-04-01 21:39:56 -04:00
Matthew Bentley
3b93c9dde9
Add functionality to load prefs.json from profile-dir (as set with
...
--profile-dir on launch)
Use T: Read rather than File, so that read_prefs_from_file can be tested
2016-04-01 21:39:45 -04:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
Corey Farwell
20beaf5af3
Fix issues found by rust-clippy
2015-10-12 20:21:49 -04:00
David Raifaizen
de2060e6a1
Making map+clone more succinct with cloned
2015-10-10 09:31:21 -04:00
James Graham
79e548905e
Enable resetable and String prefs.
...
This allows both boolean and string-type preferences. It
also implements a system where prefs that are read from a
configuration file can be reset back to their initial value,
which is useful in a number of cases e.g. when running tests
to ensure that each test starts with the same values for
the prefs.
2015-09-25 00:58:48 +01:00
James Graham
a208379f46
Update prefs API to return an Option<bool>.
...
This allows for situations where there is no reasonable default
to apply for the pref value e.g. when we are just listing values
2015-09-04 15:55:29 +01:00
Josh Matthews
6e26fefad1
Allow setting preferences from the reftest manifest. Add a command-line arg to enable a given preference.
2015-08-28 10:50:55 -04:00
Josh Matthews
a3ee9b5dd9
Replace catch-all experimental flag with fine-grained boolean preferences initialized from a JSON document.
2015-08-28 10:30:04 -04:00