diff options
author | John Resig <jeresig@gmail.com> | 2006-08-13 15:24:52 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-08-13 15:24:52 +0000 |
commit | e7a29e42391160949dc35c1af4b0d24ee1c8ad8f (patch) | |
tree | 83a27a593ab2a2f4c92f0951651141d2c9b1f55c /test/lib/Test/Simple.js | |
parent | 139a9cd7d495922b0f6e8f79d5fb3239db59b5ba (diff) | |
download | jquery-e7a29e42391160949dc35c1af4b0d24ee1c8ad8f.tar.gz jquery-e7a29e42391160949dc35c1af4b0d24ee1c8ad8f.zip |
Moved the tests into jQuery proper.
Diffstat (limited to 'test/lib/Test/Simple.js')
-rw-r--r-- | test/lib/Test/Simple.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/lib/Test/Simple.js b/test/lib/Test/Simple.js new file mode 100644 index 000000000..8222ea84a --- /dev/null +++ b/test/lib/Test/Simple.js @@ -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(); |