templates.py 732 B

1234567891011121314151617181920212223242526272829303132
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. #Template used by test-main.js
  5. TEST_MAIN_JS = '''\
  6. var main = require("./main");
  7. exports["test main"] = function(assert) {
  8. assert.pass("Unit test running!");
  9. };
  10. exports["test main async"] = function(assert, done) {
  11. assert.pass("async Unit test running!");
  12. done();
  13. };
  14. require("sdk/test").run(exports);
  15. '''
  16. #Template used by package.json
  17. PACKAGE_JSON = '''\
  18. {
  19. "name": "%(name)s",
  20. "title": "%(title)s",
  21. "id": "%(id)s",
  22. "description": "a basic add-on",
  23. "author": "",
  24. "license": "MPL 2.0",
  25. "version": "0.1"
  26. }
  27. '''