void () { ModifiableFontPreferences appPrefs = (ModifiableFontPreferences)AppEditorFontOptions.getInstance().getFontPreferences(); float currSpacing = appPrefs.getLineSpacing(); try { appPrefs.setLineSpacing(1.2f); EditorColorsScheme defaultScheme = EditorColorsManager.getInstance().getScheme(EditorColorsScheme.DEFAULT_SCHEME_NAME); EditorColorsScheme initialScheme = (EditorColorsScheme)defaultScheme.clone(); initialScheme.setConsoleLineSpacing(1.0f); assertFalse(appPrefs.getLineSpacing() == initialScheme.getConsoleLineSpacing()); Element root = serialize(initialScheme); EditorColorsScheme targetScheme = new EditorColorsSchemeImpl(defaultScheme); targetScheme.readExternal(root); appPrefs.setLineSpacing(1.3f); assertEquals(1.3f, targetScheme.getLineSpacing()); // we expect that editor still listens to app font preferences assertEquals(1.0f, targetScheme.getConsoleLineSpacing()); } finally { appPrefs.setLineSpacing(currSpacing); } }