| javax.swing.BasicSwingTestCase javax.swing.text.PlainView_ChangesRTest
testInsertUpdateExtraRepaint | public void testInsertUpdateExtraRepaint() throws BadLocationException(Code) | | Tests for PlainView repaints more lines
than necessary.
If a character (not a new line) is inserted into document,
document structure will not change, or in other words the number of
text lines will stay the same.
In this case only the modified line needs to be repainted
but PlainView repaints all following lines as well.
|
testInsertUpdateNPE | public void testInsertUpdateNPE() throws BadLocationException(Code) | | Tests for PlainView.insertUpdate throws NPE.
If a change occured outside the widest line and document structure
was not changed, insertUpdate throws NPE
when processing the notification.
|
testNextTabStop05 | public void testNextTabStop05()(Code) | | Tests for calling nextTabStop() leaves
PlainView.metrics field null .
This is because nextTabStop() forwards to
paintParams and updates metrics there,
and setSize() doesn't update the field in
the PlainView .
|
Methods inherited from javax.swing.BasicSwingTestCase | public static void assertEquals(Object[] expected, Object[] actual)(Code)(Java Doc) protected Graphics createTestGraphics()(Code)(Java Doc) protected Component findComponent(Container root, Class> findClass, boolean exactClassMatch)(Code)(Java Doc) protected FontMetrics getFontMetrics(Font fnt)(Code)(Java Doc) protected FontMetrics getFontMetrics(Font fnt, int charWidth)(Code)(Java Doc) protected FontMetrics getFontMetrics(Font fnt, int charWidth, int charHeight)(Code)(Java Doc) protected EventListener getListener(EventListener[] listeners, Class> listenerClass)(Code)(Java Doc) protected boolean hasListener(EventListener[] listeners, Class> listenerClass)(Code)(Java Doc) public static boolean isHarmony()(Code)(Java Doc) protected boolean isSystemWindow(Frame f)(Code)(Java Doc) protected void rethrow(Throwable exception) throws Throwable(Code)(Java Doc) public void runBare() throws Throwable(Code)(Java Doc) protected Throwable runBareImpl() throws Throwable(Code)(Java Doc) protected void runBareSuper() throws Throwable(Code)(Java Doc) public static Object serializeObject(Object objectToWrite) throws IOException, ClassNotFoundException(Code)(Java Doc) public void setIgnoreNotImplemented(boolean b)(Code)(Java Doc) protected void setUp() throws Exception(Code)(Java Doc) protected void tearDown() throws Exception(Code)(Java Doc) protected void testExceptionalCase(ExceptionalCase ec)(Code)(Java Doc) protected void traverseComponentTree(Component root, TraverseAction action)(Code)(Java Doc) protected boolean waitForFocus(Component c) throws Exception(Code)(Java Doc) protected void waitForIdle() throws Exception(Code)(Java Doc)
|
|
|