Moved the test directory.
[jquery.git] / build / js / lib / Test / Simple.js
diff --git a/build/js/lib/Test/Simple.js b/build/js/lib/Test/Simple.js
new file mode 100644 (file)
index 0000000..8222ea8
--- /dev/null
@@ -0,0 +1,29 @@
+// # $Id: Kinetic.pm 1493 2005-04-07 19:20:18Z theory $
+
+// Set up package.
+if (typeof JSAN != 'undefined') new JSAN().use('Test.Builder');
+else {
+    if (typeof Test == 'undefined' || typeof Test.Builder == 'undefined')
+        throw new Error(
+            "You must load either JSAN or Test.Builder "
+            + "before loading Test.Simple"
+        );
+}
+
+Test.Simple = {};
+Test.Simple.EXPORT      = ['plan', 'ok'];
+Test.Simple.EXPORT_TAGS = { ':all': Test.Simple.EXPORT };
+Test.Simple.VERSION     = '0.11';
+
+Test.Simple.plan = function (cmds) {
+    return Test.Simple.Test.plan(cmds);
+};
+
+Test.Simple.ok = function (val, desc) {
+    return Test.Simple.Test.ok(val, desc);
+};
+
+// Handle exporting.
+if (typeof JSAN == 'undefined') Test.Builder.exporter(Test.Simple);
+
+Test.Simple.Test = new Test.Builder();