[gjs/wip/xulrunner-1.9.3-rebase4: 5/16] tests: Add two basic tests
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gjs/wip/xulrunner-1.9.3-rebase4: 5/16] tests: Add two basic tests
- Date: Mon, 20 Sep 2010 22:26:12 +0000 (UTC)
commit 20914afd641d620b9f44b57f851fead35b45e108
Author: Colin Walters <walters verbum org>
Date:   Mon Sep 20 13:32:59 2010 -0400
    tests: Add two basic tests
    
    These very simple js tests exercise the basic infrastructure, before
    we drop into more complex unit tests.
    
    Added for XULRunner 1.9.3 porting.
 test/js/test0001basic.js    |    4 ++++
 test/js/test0002importer.js |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/test/js/test0001basic.js b/test/js/test0001basic.js
new file mode 100644
index 0000000..f46c16e
--- /dev/null
+++ b/test/js/test0001basic.js
@@ -0,0 +1,4 @@
+function testBasic1() {
+    var foo = 1+1;
+    print(foo);
+}
diff --git a/test/js/test0002importer.js b/test/js/test0002importer.js
new file mode 100644
index 0000000..665de1a
--- /dev/null
+++ b/test/js/test0002importer.js
@@ -0,0 +1,4 @@
+function testImporter1() {
+    var GLib = imports.gi.GLib;
+    print(GLib.E);
+}
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]