updated tests
[org.ibex.core.git] / tests / test.t
diff --git a/tests/test.t b/tests/test.t
new file mode 100644 (file)
index 0000000..162aa96
--- /dev/null
@@ -0,0 +1,17 @@
+<ibex xmlns:ui="ibex://ui">
+    <ui:box width="300" height="300" fill="red" axis="z">
+        ibex.ui.frame = thisbox;
+
+        <ui:box fill="blue" width="50" height="50" x="100" y="100" id="blue" axis="z"/>
+
+        // this thread makes things spin.
+        var rot = 0;
+        ibex.thread = function(f) { while(true) {
+             ibex.thread.sleep(100);
+             $blue.transform = "rotate(" + rot + ")";
+             $blue.x = 100;
+             $blue.y = 100;
+             rot += 5;
+       } }
+    </ui:box>
+</ibex>