mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:22:30 +02:00
added preliminary unit tests, not working yet, because the vimperator object cannot be found in this context.
This commit is contained in:
1 parent
1bb7def7a0
commit
b21eb9d1b6
1 file changed
+19
+19
@@ -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"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user