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 Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package lcdui
.display
;
12 import javax
.microedition
.lcdui
.Display
;
13 import lcdui
.BaseDisplay
;
14 import net
.multiphasicapps
.tac
.OptionalFirstParameter
;
17 * Tests that serial calls happen properly.
21 public class TestCallSerially
23 implements OptionalFirstParameter
29 @SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
31 public void test(Display __display
, String __param
)
33 __SerialRun__ run
= new __SerialRun__();
35 // This call should run the code then wait for it to be completed
36 __display
.callSerially(run
);
38 // Then get the result of that, should be true
48 catch (InterruptedException ignored
)
53 this.secondary("flagged", run
._flag
);