| javax.swing.text.DefaultStyledDocument_ElementBuffer_InsertNewLineTest
DefaultStyledDocument_ElementBuffer_InsertNewLineTest | public class DefaultStyledDocument_ElementBuffer_InsertNewLineTest extends TestCase (Code) | | Tests DefaultStyledDocument.ElementBuffer.insert() method with
ElementSpec array that was obtained from real-life text insertions.
The text contains only new line character.
|
testInsertDiffAttrsDocEnd | public void testInsertDiffAttrsDocEnd() throws Exception(Code) | | Inserting text into the end of the document with different attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, italic) ,
where insertOffset = doc.getLength() .
|
testInsertDiffAttrsDocStart | public void testInsertDiffAttrsDocStart() throws Exception(Code) | | Inserting text with different attributes into the beginning of
the document.
This test is equivalent to
doc.insertString(insertOffset, newLine, italic) ,
where insertOffset = 0 .
|
testInsertDiffAttrsEnd | public void testInsertDiffAttrsEnd() throws Exception(Code) | | Inserting text into element boundary; the text and both elements have
different attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, null) ,
where 2 is added to default value of insertOffset .
|
testInsertDiffAttrsMiddle | public void testInsertDiffAttrsMiddle() throws Exception(Code) | | Inserting text into the middle of an element with different attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, null) ,
where insertOffset has default value from
setUp() .
|
testInsertDiffAttrsParStart | public void testInsertDiffAttrsParStart() throws Exception(Code) | | Inserting text into the start of a paragraph with different attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, italic) ,
where insertOffset = paragraph.getEndOffset() .
|
testInsertDiffSameAttrsEnd | public void testInsertDiffSameAttrsEnd() throws Exception(Code) | | Inserting text into element boundary; the attributes of the text and
the following element are the same, the attributes of the previous
element are different.
This test is equivalent to
doc.insertString(insertOffset, newLine, italic) ,
where 2 is added to default value of insertOffset .
|
testInsertSameAttrsDocEnd | public void testInsertSameAttrsDocEnd() throws Exception(Code) | | Inserting text into the end of the document with the same attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, null) ,
where insertOffset = doc.getLength() .
|
testInsertSameAttrsDocStart | public void testInsertSameAttrsDocStart() throws Exception(Code) | | Inserting text with the same attributes into the beginning of
the document.
This test is equivalent to
doc.insertString(insertOffset, newLine, null) ,
where insertOffset = 0 .
|
testInsertSameAttrsEnd | public void testInsertSameAttrsEnd() throws Exception(Code) | | Inserting text into end of the an element with the same attributes;
the following element has different attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, bold) ,
where 2 is added to default value of insertOffset .
|
testInsertSameAttrsMiddle | public void testInsertSameAttrsMiddle() throws Exception(Code) | | Inserting text into middle of an element with the same attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, bold) ,
where insertOffset has default value from
setUp() .
|
testInsertSameAttrsParStart | public void testInsertSameAttrsParStart() throws Exception(Code) | | Inserting text into the start of a paragraph with the same attributes.
This test is equivalent to
doc.insertString(insertOffset, newLine, null) ,
where insertOffset = paragraph.getEndOffset() .
|
|
|