mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
+4
-5
@@ -99,7 +99,7 @@ public class FinderRecursivePanelListModelMergeTest extends LightPlatformTestCas
|
||||
@Override
|
||||
public void valueChanged(ListSelectionEvent e) {
|
||||
if (panel.isMergeListItemsRunning()) return;
|
||||
assertTrue("selection changed", false);
|
||||
fail("selection changed");
|
||||
}
|
||||
};
|
||||
list.addListSelectionListener(selectionListener);
|
||||
@@ -114,19 +114,18 @@ public class FinderRecursivePanelListModelMergeTest extends LightPlatformTestCas
|
||||
list.removeListSelectionListener(selectionListener);
|
||||
}
|
||||
|
||||
|
||||
@NotNull
|
||||
private StringFinderRecursivePanel createStringPanel(String[] initialItems) {
|
||||
private static StringFinderRecursivePanel createStringPanel(String[] initialItems) {
|
||||
StringFinderRecursivePanel panel = new StringFinderRecursivePanel(initialItems);
|
||||
panel.initPanel();
|
||||
return panel;
|
||||
}
|
||||
|
||||
private class StringFinderRecursivePanel extends FinderRecursivePanel<String> {
|
||||
private static class StringFinderRecursivePanel extends FinderRecursivePanel<String> {
|
||||
private final String[] myInitialItems;
|
||||
|
||||
StringFinderRecursivePanel(String[] initialItems) {
|
||||
super(FinderRecursivePanelListModelMergeTest.this.getProject(), null);
|
||||
super(LightPlatformTestCase.getProject(), null);
|
||||
myInitialItems = initialItems;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.intellij.ui;
|
||||
import com.intellij.ide.ui.UISettings;
|
||||
import com.intellij.ide.ui.UISettingsState;
|
||||
import com.intellij.ide.ui.laf.LafManagerImpl;
|
||||
import com.intellij.testFramework.PlatformTestCase;
|
||||
import com.intellij.testFramework.LightPlatformTestCase;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -12,12 +12,12 @@ import java.awt.*;
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public class LafManagerTest extends PlatformTestCase {
|
||||
public class LafManagerTest extends LightPlatformTestCase {
|
||||
public void testCustomFont() {
|
||||
UISettingsState uiSettings = UISettings.getInstance().getState();
|
||||
final String fontFace = uiSettings.getFontFace();
|
||||
final int fontSize = UISettings.getInstance().getFontSize();
|
||||
final LafManagerImpl lafManager = LafManagerImpl.getTestInstance();
|
||||
String fontFace = uiSettings.getFontFace();
|
||||
int fontSize = UISettings.getInstance().getFontSize();
|
||||
LafManagerImpl lafManager = LafManagerImpl.getTestInstance();
|
||||
|
||||
try {
|
||||
String newFontName = "Arial";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package com.intellij.ui;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.testFramework.PlatformTestCase;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -11,7 +11,7 @@ import java.util.TreeSet;
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public class PlatformIconsAPITest extends PlatformTestCase {
|
||||
public class PlatformIconsAPITest extends TestCase {
|
||||
|
||||
public void testCurrentAPI() {
|
||||
//todo[kb, tav] Check that icons added to AllIcons are also added to PUBLIC_API_ICONS. Add svg icons
|
||||
|
||||
@@ -26,7 +26,7 @@ import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class SortedListModelTest extends TestCase {
|
||||
private final SortedListModel<String> myModel = new SortedListModel<>((o1, o2) -> o1.compareTo(o2));
|
||||
private final SortedListModel<String> myModel = new SortedListModel<>(Comparator.naturalOrder());
|
||||
private final Assertion CHECK = new Assertion();
|
||||
|
||||
public void testAdding() {
|
||||
|
||||
Reference in New Issue
Block a user