For a mouseless future.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-index.js 427B

12345678910111213141516171819
  1. var main = require("../");
  2. exports["test main"] = function(assert) {
  3. assert.pass("Unit test running!");
  4. };
  5. exports["test main async"] = function(assert, done) {
  6. assert.pass("async Unit test running!");
  7. done();
  8. };
  9. exports["test dummy"] = function(assert, done) {
  10. main.dummy("foo", function(text) {
  11. assert.ok((text === "foo"), "Is the text actually 'foo'");
  12. done();
  13. });
  14. };
  15. require("sdk/test").run(exports);