| java.lang.Object com.sun.midp.i3test.TestCase javax.microedition.lcdui.Test6254765
Test6254765 | public class Test6254765 extends TestCase (Code) | | Regression tests for CR 6254765. There are actually two bugs mentioned
there. Details are provided for each test case.
|
Method Summary | |
boolean | checkValidLayout(Form form) Checks all of the itemLFs of the given form to see if their layouts are
valid. | public void | runTests() | void | testScreenChangeAppend() Regression test for the main CR described in CR 6254765. | void | testTraversalInconsistency() This is a regression test for another CR that is also mentioned in
6254765, which occurs when the form is in an inconsistent state such as
what arose from the initial CR, but which can also arise for other
reasons.
This case is as follows: traverseIndex == -1 and itemTraverse == false,
indicating no initial focus; and getNextInteractiveItem returns a value
>= 0 indicating that there is a focusable item on screen.
The uTraverse() code assumes that if getNextInteractiveItem returns
some nonnegative value, there must be a currently focused item (that
is, traverseIndex is also nonnegative). |
checkValidLayout | boolean checkValidLayout(Form form)(Code) | | Checks all of the itemLFs of the given form to see if their layouts are
valid. Returns true if all are valid, false if any one is invalid.
|
testScreenChangeAppend | void testScreenChangeAppend()(Code) | | Regression test for the main CR described in CR 6254765. This is a
race condition between modifying a Form's contents (for example, with
append) while the Form is in the process of becoming current.
|
testTraversalInconsistency | void testTraversalInconsistency()(Code) | | This is a regression test for another CR that is also mentioned in
6254765, which occurs when the form is in an inconsistent state such as
what arose from the initial CR, but which can also arise for other
reasons.
This case is as follows: traverseIndex == -1 and itemTraverse == false,
indicating no initial focus; and getNextInteractiveItem returns a value
>= 0 indicating that there is a focusable item on screen.
The uTraverse() code assumes that if getNextInteractiveItem returns
some nonnegative value, there must be a currently focused item (that
is, traverseIndex is also nonnegative). However, this is not always the
case. This can occur if the form initially has no visible focusable
items, and the app adds a focusable item, which triggers an invalidate,
and then the user traverses before the invalidate can be processed.
This test simulates that case.
|
Methods inherited from com.sun.midp.i3test.TestCase | public void assertEquals(Object expected, Object actual)(Code)(Java Doc) public void assertEquals(String message, Object expected, Object actual)(Code)(Java Doc) public void assertEquals(int expected, int actual)(Code)(Java Doc) public void assertEquals(String message, int expected, int actual)(Code)(Java Doc) public void assertFalse(boolean condition)(Code)(Java Doc) public void assertFalse(String message, boolean condition)(Code)(Java Doc) public void assertNotNull(Object object)(Code)(Java Doc) public void assertNotNull(String message, Object object)(Code)(Java Doc) public void assertNotSame(Object expected, Object actual)(Code)(Java Doc) public void assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc) public void assertNull(Object object)(Code)(Java Doc) public void assertNull(String message, Object object)(Code)(Java Doc) public void assertSame(Object expected, Object actual)(Code)(Java Doc) public void assertSame(String message, Object expected, Object actual)(Code)(Java Doc) public void assertTrue(String message, boolean condition)(Code)(Java Doc) public void assertTrue(boolean condition)(Code)(Java Doc) public void declare(String testName)(Code)(Java Doc) public void fail()(Code)(Java Doc) public void fail(String message)(Code)(Java Doc) protected SecurityToken getSecurityToken()(Code)(Java Doc) protected boolean getVerbose()(Code)(Java Doc) public void info(String s)(Code)(Java Doc) abstract public void runTests() throws Throwable(Code)(Java Doc)
|
|
|