Moved the test directory.
[jquery.git] / build / js / lib / Test / Simple.js
1 // # $Id: Kinetic.pm 1493 2005-04-07 19:20:18Z theory $
2
3 // Set up package.
4 if (typeof JSAN != 'undefined') new JSAN().use('Test.Builder');
5 else {
6     if (typeof Test == 'undefined' || typeof Test.Builder == 'undefined')
7         throw new Error(
8             "You must load either JSAN or Test.Builder "
9             + "before loading Test.Simple"
10         );
11 }
12
13 Test.Simple = {};
14 Test.Simple.EXPORT      = ['plan', 'ok'];
15 Test.Simple.EXPORT_TAGS = { ':all': Test.Simple.EXPORT };
16 Test.Simple.VERSION     = '0.11';
17
18 Test.Simple.plan = function (cmds) {
19     return Test.Simple.Test.plan(cmds);
20 };
21
22 Test.Simple.ok = function (val, desc) {
23     return Test.Simple.Test.ok(val, desc);
24 };
25
26 // Handle exporting.
27 if (typeof JSAN == 'undefined') Test.Builder.exporter(Test.Simple);
28
29 Test.Simple.Test = new Test.Builder();