| javax.swing.text.StyleContextTest
Field Summary | |
final protected static Object[] | attr The array of attribute key-value pair that is shared in the tests. | protected static StyleContext | sc |
attr | final protected static Object[] attr(Code) | | The array of attribute key-value pair that is shared in the tests.
|
addAttribute | protected static AttributeSet addAttribute(AttributeSet as, int start, int count)(Code) | | Adds some attributes from attr array.
Parameters: as - old attribute set to add to, may be null Parameters: start - index of the first attribute in the array Parameters: count - the number of attributes to add new attribute set with attributes added |
assertAttributes | public static boolean assertAttributes(String[] expAttrs, String[] realAttrs)(Code) | | |
getSCCache | protected static Map, ?> getSCCache()(Code) | | Wrapper to access StyleContext.cache field.
style context's cache |
getSCFontCache | protected static Map, ?> getSCFontCache()(Code) | | Wrapper to access StyleContext.fontCache field.
style context's cache |
testAddStyle | public void testAddStyle()(Code) | | |
testAddStyleMisc | public void testAddStyleMisc()(Code) | | |
testAddStyleTwice | public void testAddStyleTwice()(Code) | | |
testCaching | public void testCaching()(Code) | | |
testChangeListenerAddStyle | public void testChangeListenerAddStyle()(Code) | | |
testChangeListenerAddStyleNull | public void testChangeListenerAddStyleNull()(Code) | | |
testChangeListenerRemoveStyle | public void testChangeListenerRemoveStyle()(Code) | | |
testCollectGarbageInCache | public void testCollectGarbageInCache()(Code) | | |
testCollectGarbageInCacheFont | public void testCollectGarbageInCacheFont()(Code) | | |
testCreateLargeAttributeSet | public void testCreateLargeAttributeSet()(Code) | | |
testCreateSmallAttributeSet | public void testCreateSmallAttributeSet()(Code) | | |
testGetChangeListeners | public void testGetChangeListeners()(Code) | | |
testGetCompressionThreshold | public void testGetCompressionThreshold()(Code) | | |
testGetDefaultStyleContext | public void testGetDefaultStyleContext()(Code) | | |
testGetEmptySet | public void testGetEmptySet()(Code) | | |
testGetStyle | public void testGetStyle()(Code) | | |
testGetStyleNames | public void testGetStyleNames()(Code) | | |
testGetStyleNamesDef | public void testGetStyleNamesDef()(Code) | | |
testRemoveStyle | public void testRemoveStyle()(Code) | | |
testStyleContext | public void testStyleContext()(Code) | | Makes sure that after initialization, any style context will
contain exactly one style (default).
|
testToString | public void testToString()(Code) | | |
|
|