diff options
author | Colin Walters <walters@verbum.org> | 2010-09-20 13:32:59 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-20 16:04:23 -0400 |
commit | 20914afd641d620b9f44b57f851fead35b45e108 (patch) | |
tree | 07648d5de6bdb23d0fc38378aea1ded933258279 | |
parent | 6447a30d79a5352e06214e6f45c5f4a61a414388 (diff) | |
download | gjs-20914afd641d620b9f44b57f851fead35b45e108.tar.gz |
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.
-rw-r--r-- | test/js/test0001basic.js | 4 | ||||
-rw-r--r-- | 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 00000000..f46c16ed --- /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 00000000..665de1a9 --- /dev/null +++ b/test/js/test0002importer.js @@ -0,0 +1,4 @@ +function testImporter1() { + var GLib = imports.gi.GLib; + print(GLib.E); +} |