mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
new android port: introduce a simple servo library
This commit is contained in:
parent
cbaf19c65c
commit
baf6635a4c
16 changed files with 1398 additions and 30 deletions
|
@ -48,6 +48,7 @@ fn test_get_set_reset_extend() {
|
|||
assert_eq!(*PREFS.get("extra.stuff"), PrefValue::Boolean(false));
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
#[test]
|
||||
fn test_default_config_dir_create_read_write() {
|
||||
let json_str = "{\
|
||||
|
@ -56,7 +57,7 @@ fn test_default_config_dir_create_read_write() {
|
|||
\"shell.homepage\": \"https://google.com\"\
|
||||
}";
|
||||
let mut expected_json = String::new();
|
||||
let config_path = basedir::default_config_dir();
|
||||
let config_path = basedir::default_config_dir().unwrap();
|
||||
|
||||
if !config_path.exists() {
|
||||
fs::create_dir_all(&config_path).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue