mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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
This commit is contained in:
parent
3b93c9dde9
commit
d06def01ff
4 changed files with 47 additions and 2 deletions
|
@ -801,7 +801,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
|
||||
// These must happen after setting the default options, since the prefs rely on
|
||||
// on the resource path.
|
||||
// Note that command line preferences have the highest precedent
|
||||
// Note that command line preferences have the highest precedence
|
||||
if get().profile_dir.is_some() {
|
||||
prefs::add_user_prefs();
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use opts;
|
||||
use resource_files::resources_dir_path;
|
||||
use rustc_serialize::json::{Json, ToJson};
|
||||
use opts;
|
||||
use std::borrow::ToOwned;
|
||||
use std::collections::HashMap;
|
||||
use std::fs::File;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue