[utest] r26 committed - Created wiki page through web user interface.

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 7, 2009, 5:54:47 AM8/7/09
to utes...@googlegroups.com
Revision: 26
Author: franco.ponticelli
Date: Fri Aug 7 02:54:25 2009
Log: Created wiki page through web user interface.
http://code.google.com/p/utest/source/detail?r=26

Added:
/wiki/AsyncTest.wiki

=======================================
--- /dev/null
+++ /wiki/AsyncTest.wiki Fri Aug 7 02:54:25 2009
@@ -0,0 +1,31 @@
+#summary Small sample for an asynchronous test
+
+= Introduction =
+
+Async tests are very to implement with utest. Create a delegate using
Assert.createAsync, than dispatch it on a timer or timed event.
+
+= Details =
+
+{{{
+import utest.Assert;
+import utest.Runner;
+import utest.ui.text.TraceReport;
+
+class Test {
+ public static function main() {
+ var runner = new Runner();
+ runner.addCase(new Test());
+ var report = new TraceReport(runner);
+ runner.run();
+ }
+
+ public function new();
+
+ public function testAsync() {
+ var async = Assert.createAsync(function() Assert.isTrue(true));
+ haxe.Timer.delay(async, 50);
+ }
+}
+}}}
+
+Compile using the same build file used in [BasicTutorial Basic Tutorial].

Reply all
Reply to author
Forward
0 new messages