X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=build%2Fjs%2Flib%2FTest%2FSimple.js;fp=build%2Fjs%2Flib%2FTest%2FSimple.js;h=8222ea84a46c3b3e84e4aa625725fcc4b9e95a97;hb=e943090a72fada9068705a701e2f37ca2907d310;hp=0000000000000000000000000000000000000000;hpb=0cd3821ac2b74d37384a36f281e5a952138aaae2;p=jquery.git diff --git a/build/js/lib/Test/Simple.js b/build/js/lib/Test/Simple.js new file mode 100644 index 0000000..8222ea8 --- /dev/null +++ b/build/js/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();