initial commit
This commit is contained in:
commit
209bfeb500
|
|
@ -0,0 +1,2 @@
|
|||
#Clipboard Inserter
|
||||
A simple addon whose purpose is to automatically insert contents of clipboard into the page
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
var self = require("sdk/self");
|
||||
|
||||
// a dummy function, to show how tests work.
|
||||
// to see how to test this function, look at test/test-index.js
|
||||
function dummy(text, callback) {
|
||||
callback(text);
|
||||
}
|
||||
|
||||
exports.dummy = dummy;
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"title": "Clipboard Inserter",
|
||||
"name": "clipboard-inserter",
|
||||
"version": "0.0.1",
|
||||
"description": "A simple addon whose purpose is to automatically insert contents of clipboard into the page",
|
||||
"main": "index.js",
|
||||
"author": "Yoitsumi",
|
||||
"engines": {
|
||||
"firefox": ">=38.0a1",
|
||||
"fennec": ">=38.0a1"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"jetpack"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
var main = require("../");
|
||||
|
||||
exports["test main"] = function(assert) {
|
||||
assert.pass("Unit test running!");
|
||||
};
|
||||
|
||||
exports["test main async"] = function(assert, done) {
|
||||
assert.pass("async Unit test running!");
|
||||
done();
|
||||
};
|
||||
|
||||
exports["test dummy"] = function(assert, done) {
|
||||
main.dummy("foo", function(text) {
|
||||
assert.ok((text === "foo"), "Is the text actually 'foo'");
|
||||
done();
|
||||
});
|
||||
};
|
||||
|
||||
require("sdk/test").run(exports);
|
||||
Loading…
Reference in New Issue