From b21eb9d1b6bfe896c41ffb59023059e213dedad7 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Fri, 8 Jun 2007 17:21:07 +0000 Subject: [PATCH] added preliminary unit tests, not working yet, because the vimperator object cannot be found in this context. --- mozunit.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mozunit.js diff --git a/mozunit.js b/mozunit.js new file mode 100644 index 00000000..8947f8f3 --- /dev/null +++ b/mozunit.js @@ -0,0 +1,19 @@ +var TestCase = mozlab.mozunit.TestCase; +var assert = mozlab.mozunit.assertions; + +var tc = new TestCase('vimperator testcase description here'); + +//var vimperator = new Vimperator(); + +tc.tests = { + 'First test is successful': function() { + assert.isTrue(true); + }, + + 'Checking a working echo()': function() { + assert.isTrue(vimperator.echo("test")); + }, + 'Checking the non working ex.echo()': function() { + assert.isTrue(vimperator.ex.echo("test")); + } +}