Index: modules/swing/src/test/api/java/common/javax/swing/text/StyledEditorKitTest.java =================================================================== --- modules/swing/src/test/api/java/common/javax/swing/text/StyledEditorKitTest.java (revision 483865) +++ modules/swing/src/test/api/java/common/javax/swing/text/StyledEditorKitTest.java (working copy) @@ -240,6 +240,12 @@ } } } + + public void testGetInputAttributesNoComponent() throws Exception { + final AttributeSet as = kit.getInputAttributes(); + assertNotNull(as); + assertEquals(0, as.getAttributeCount()); + } static final Element getElementByOffset(final Document doc, final int offset) { int pos = (offset == 0) ? 0 : offset - 1;