mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
#8539 Config preferences backend restructure
This commit is contained in:
parent
34fda66dfa
commit
8bfd4dc1e2
53 changed files with 1748 additions and 680 deletions
|
@ -10,7 +10,7 @@ use net_traits::blob_url_store::BlobURLStoreError;
|
|||
use net_traits::filemanager_thread::{
|
||||
FileManagerThreadError, FileManagerThreadMsg, ReadFileProgress,
|
||||
};
|
||||
use servo_config::prefs::{PrefValue, PREFS};
|
||||
use servo_config::set_pref;
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
use std::path::PathBuf;
|
||||
|
@ -18,10 +18,7 @@ use std::path::PathBuf;
|
|||
#[test]
|
||||
fn test_filemanager() {
|
||||
let filemanager = FileManager::new(create_embedder_proxy());
|
||||
PREFS.set(
|
||||
"dom.testing.htmlinputelement.select_files.enabled",
|
||||
PrefValue::Boolean(true),
|
||||
);
|
||||
set_pref!(dom.testing.html_input_element.select_files.enabled, true);
|
||||
|
||||
// Try to open a dummy file "components/net/tests/test.jpeg" in tree
|
||||
let mut handler = File::open("tests/test.jpeg").expect("test.jpeg is stolen");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue