mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created. GitOrigin-RevId: a524f4e03a4e80b49653f4eb3c1179cbdc5e581d
24 lines
655 B
Java
24 lines
655 B
Java
package com.intellij.ui;
|
|
|
|
import com.intellij.openapi.wm.impl.status.TextPanel;
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
import java.awt.*;
|
|
|
|
public class TextPanelTest {
|
|
|
|
@Test
|
|
public void testSetPreferredSizeSetExplicitSizeGetExplicitSize() {
|
|
final Dimension preferredDimension = new Dimension(2345,678);
|
|
final Dimension explicitDimension = new Dimension(4343,5554);
|
|
|
|
TextPanel tp = new TextPanel() {};
|
|
tp.setPreferredSize(preferredDimension);
|
|
tp.setExplicitSize(explicitDimension);
|
|
|
|
Assert.assertEquals("Explicit dimension is more preferable",
|
|
explicitDimension, tp.getPreferredSize());
|
|
}
|
|
}
|