1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
12 import cc
.squirreljme
.jvm
.mle
.brackets
.UIDisplayBracket
;
13 import cc
.squirreljme
.jvm
.mle
.brackets
.UIFormBracket
;
14 import cc
.squirreljme
.jvm
.mle
.brackets
.UIItemBracket
;
15 import cc
.squirreljme
.jvm
.mle
.constants
.UIItemType
;
16 import cc
.squirreljme
.jvm
.mle
.exceptions
.MLECallError
;
17 import cc
.squirreljme
.runtime
.lcdui
.mle
.UIBackend
;
20 * Checks that deleting visible items fails.
24 public class TestDeleteVisibleItem
32 protected void test(UIBackend __backend
, UIDisplayBracket __display
,
36 // Create the item and make it visible on the form
37 UIItemBracket item
= __backend
.itemNew(UIItemType
.BUTTON
);
38 __backend
.formItemPosition(__form
, item
, 0);
40 // Attempt to delete the item
43 __backend
.itemDelete(item
);
45 catch (MLECallError e
)
47 throw new FormTestException(e
);