b33ebb450a
Environment.init() uses Shell.Global, which is not accessible outside the mutter process; allowing to run the function when window.global is undefined fixes the environment for tests. https://bugzilla.gnome.org/show_bug.cgi?id=631091