diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-11-06 15:40:55 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-11-06 15:40:55 +0100 |
commit | d8b465e26599268b8eded0732e8f29062556997e (patch) | |
tree | f9ffd0443aa616eb4df1b461684f4aeeb53fb7b2 /qx08/source/class/tr/test/DemoTest.js | |
parent | 996d9e92e597bc462d874b335865ff7844e2d332 (diff) | |
download | smokeping-d8b465e26599268b8eded0732e8f29062556997e.tar.gz smokeping-d8b465e26599268b8eded0732e8f29062556997e.tar.xz |
initial commit
Diffstat (limited to 'qx08/source/class/tr/test/DemoTest.js')
-rw-r--r-- | qx08/source/class/tr/test/DemoTest.js | 67 |
1 files changed, 35 insertions, 32 deletions
diff --git a/qx08/source/class/tr/test/DemoTest.js b/qx08/source/class/tr/test/DemoTest.js index 76ce685..0f6a04f 100644 --- a/qx08/source/class/tr/test/DemoTest.js +++ b/qx08/source/class/tr/test/DemoTest.js @@ -20,36 +20,39 @@ * i.e. using deeper namespaces and a corresponding file structure within the * <tt>test</tt> folder. */ -qx.Class.define("tr.test.DemoTest", -{ - extend : qx.dev.unit.TestCase, - - members : - { - /* - --------------------------------------------------------------------------- - TESTS - --------------------------------------------------------------------------- - */ - - /** - * Here are some simple tests - */ - testSimple : function() - { - this.assertEquals(4, 3+1, "This should never fail!"); - this.assertFalse(false, "Can false be true?!"); - }, - - /** - * Here are some more advanced tests - */ - testAdvanced: function () - { - var a = 3; - var b = a; - this.assertIdentical(a, b, "A rose by any other name is still a rose"); - this.assertInRange(3, 1, 10, "You must be kidding, 3 can never be outside [1,10]!"); +qx.Class.define("tr.test.DemoTest", { + extend : qx.dev.unit.TestCase, + + members : { + /* + --------------------------------------------------------------------------- + TESTS + --------------------------------------------------------------------------- + */ + + /** + * Here are some simple tests + * + * @type member + * @return {void} + */ + testSimple : function() { + this.assertEquals(4, 3 + 1, "This should never fail!"); + this.assertFalse(false, "Can false be true?!"); + }, + + + /** + * Here are some more advanced tests + * + * @type member + * @return {void} + */ + testAdvanced : function() { + var a = 3; + var b = a; + this.assertIdentical(a, b, "A rose by any other name is still a rose"); + this.assertInRange(3, 1, 10, "You must be kidding, 3 can never be outside [1,10]!"); + } } - } -}); +});
\ No newline at end of file |