summaryrefslogtreecommitdiff
path: root/test/fixtures/a.js
diff options
context:
space:
mode:
authorarlolra <arlolra@gmail.com>2010-02-25 01:36:17 -0500
committerRyan Dahl <ry@tinyclouds.org>2010-02-25 11:41:11 -0800
commit04fac198225ae48ed7726c15609d254fddce4862 (patch)
treeb09866cfed0c40d4cd3731f1d8b161e335df17e0 /test/fixtures/a.js
parent9ad7539cf9c36edf4b014adb1ce979f578de0aa1 (diff)
downloadandroid-node-v8-04fac198225ae48ed7726c15609d254fddce4862.tar.gz
android-node-v8-04fac198225ae48ed7726c15609d254fddce4862.tar.bz2
android-node-v8-04fac198225ae48ed7726c15609d254fddce4862.zip
Split tests.
Diffstat (limited to 'test/fixtures/a.js')
-rw-r--r--test/fixtures/a.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/fixtures/a.js b/test/fixtures/a.js
new file mode 100644
index 0000000000..4b9927ee41
--- /dev/null
+++ b/test/fixtures/a.js
@@ -0,0 +1,23 @@
+var c = require("./b/c");
+
+debug("load fixtures/a.js");
+
+var string = "A";
+
+exports.SomeClass = c.SomeClass;
+
+exports.A = function () {
+ return string;
+};
+
+exports.C = function () {
+ return c.C();
+};
+
+exports.D = function () {
+ return c.D();
+};
+
+process.addListener("exit", function () {
+ string = "A done";
+});