Revert StaticDisplayState; For hosted only allow debug to be used.
[SquirrelJME.git] / modules / midp-lcdui / src / test / java / mleui / forms / TestCreateItems.java
blob43ad0714856ebb9b421d397a0fb09c158474e786
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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 // ---------------------------------------------------------------------------
10 package mleui.forms;
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.runtime.lcdui.mle.UIBackend;
18 /**
19 * Tests the creation of items.
21 * @since 2020/07/18
23 public class TestCreateItems
24 extends BaseUIForm
26 /**
27 * {@inheritDoc}
28 * @since 2020/07/18
30 @Override
31 protected void test(UIBackend __backend, UIDisplayBracket __display,
32 UIFormBracket __form)
34 for (int i = 0; i < UIItemType.NUM_TYPES; i++)
36 // Create the item
37 UIItemBracket item = __backend.itemNew(i);
39 // Then quickly delete it
40 __backend.itemDelete(item);
42 // Note it
43 this.secondary("did-" + i, true);