Make the global options more resilient to unit tests running in parallel.

This commit is contained in:
Josh Matthews 2015-07-21 08:47:14 -04:00
parent cb52cc6658
commit fecb2e3960
7 changed files with 52 additions and 40 deletions

View file

@ -76,7 +76,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
temp_opts.enable_canvas_antialiasing = true;
temp_opts.resources_path = None;
temp_opts.url = None;
opts::set(temp_opts);
opts::set_defaults(temp_opts);
if unsafe { (*settings).windowless_rendering_enabled != 0 } {
init_window();